Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

for each window a focus!

Status
Not open for further replies.

paola13

Technical User
Oct 22, 2001
36
IT
I have an html page (1.htm). Inside a swf (1.swf); 1.swf is a game and i need the focus on it when it opens the 1.htm window. To get the focus i use this js:

<script language=&quot;JavaScript&quot;>
<!--
function fuoco(){
var IE = navigator.appName.indexOf(&quot;Microsoft&quot;) != -1;
var filmato = IE ? window.filmato : window.document.filmato;
filmato.focus();
}
//-->
</script>

In the body tag:eek:nLoad=&quot;fuoco()&quot; and in the object tag the right parameters (Id, name ecc..)

When i click a buttom in 1.swf, a new window openes (2.htm).
To overlap 1.htm with the new one (2.htm) i put in the 2.htm body tag: onLoad=&quot;self.focus()&quot;.
Now the problem is that, if I want to see the old one page (1.htm) that now is under the 2.htm, and i press its window-bar, I lost the focus on the 1.swf...
How can I get a focus that pass trought one page to another?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top