# Loss of focus

**URL:** <https://forum.kirupa.com/t/loss-of-focus/220953>\
**Category:** Uncategorized\
**Created:** [March 30, 2007, 6:28pm UTC](https://forum.kirupa.com/t/loss-of-focus/220953 "2007-03-30T18:28:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohan4](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rohan4](https://forum.kirupa.com/u/rohan4)\
**Post date:** [March 30, 2007, 6:28pm UTC](https://forum.kirupa.com/t/loss-of-focus/220953/1 "2007-03-30T18:28:45Z")

</div>

Hi  
Sorry to sound like a div head - but I have a .swf background and I use javascript to open a straight bowser window. This is fine, but when I click the mouse on the .swf (now the background) the browser window looses focus. Is there anyway of keeping the browser window in focus, while being able to interact with .swf file behind?

Here is the code I presently use

button\_mc.onPress = function(){  
getURL (“javascript:NewWindow=window.open(’’,‘newWin’,‘width=800,height=700,left=200,top=100,toolbar=Yes,location=Yes,scrollbars=Yes,status=Yes,resizable=Yes,fullscreen=No’); NewWindow.focus(); void(0);”);  
}

Thanks in advance  
R
