Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: maintaining "focus" of a pop up window


Message #1 by "Bill Plummer" <bill@s...> on Tue, 20 Mar 2001 10:38:46
Thanks
the script top.focus works fine
Thanks
bill Plummer
----- Original Message -----
From: Gérald P. <geraldp@w...>
To: javascript <javascript@p...>
Sent: Tuesday, March 20, 2001 7:31 PM
Subject: [javascript] Re: maintaining "focus" of a pop up window


> Hi Bill,
>
> Check the following code, I hope this is what you need.
> Compatibility : IE5+ (I don't have tested the code
> with others browsers).
>
> Gérald P.
>
> PS : tell me if it works fine with Netscape.
>
> ******************* BEGIN ***************
>
> <HTML>
> <HEAD>
> <TITLE>top</TITLE>
> <BODY>
> <SCRIPT language="JavaScript"><!--
> foc();
>
>   function foc(){
>  if(parseInt(navigator.appVersion.charAt(0))>2)top.focus();
>  setTimeout("foc()", 50);}//-->
>
> </SCRIPT>
> </BODY>
> </HTML>
>
> ******************** END ****************
>
> ----- Original Message -----
> From: "bill plummer" <bill@s...>
> To: "javascript" <javascript@p...>
> Sent: Tuesday, March 20, 2001 2:13 PM
> Subject: [javascript] Re: maintaining "focus" of a pop up window
>
>
> > I'm a bit naive but if I use an alert box giving information it seems a
> > clumsy work-around if there is a better way
> > Thanks
> >  If you can think of anything else or I have misunderstood your message
> > please let me know. Perhaps you could give me an example of a suitable
> > coding
> > Thanks again Bill Plummer
> > ----- Original Message -----
> > From: Kees Dekker <kdekker@h...>To: javascript
<javascript@p...>
> > Sent: Tuesday, March 20, 2001 12:31 PM
> > Subject: [javascript] Re: maintaining "focus" of a pop up window
> >
> >
> > > Did you consider to use the window methods showModalDialog or
> > > showModelessDialog?
> > >
> > > Regards,
> > > Kees
> > >
> > >
> > >
> > 

  Return to Index