[Javascript] Q on wondow.focus()

Trey H tutwabee at hotmail.com
Wed Mar 27 22:48:43 CST 2002


I tried typing this in to my window:

<body onBlur='window.focus()'>

It worked for me.  Just make sure to keep the B capital.  You were very 
close, but not quite there!

====================================
Trey: tutwabee at hotmail.com
Get free JavaScripts at the Blue Dragon!
Just go to:
http://www.websiter.biz
====================================



>From: "Walter Torres" <walter at torres.ws>
>Reply-To: javascript at LaTech.edu
>To: <javascript at LaTech.edu>
>Subject: [Javascript] Q on wondow.focus()
>Date: Wed, 27 Mar 2002 22:28:11 -0600
>
>I would like to have a way to force a window forward, top most, whenever a
>user clicks off the window I popped up.
>
>I did this in the new window...
>
>     <body onblur='window.focus()'>
>
>and...
>
>     <body onblur='self.focus()'>
>
>
>All this did was make the button on the START bar (that represents the
>window) flash. The window did not come forward.
>
>Any ideas?
>
>And I can't use modalDialog or modelessDialog, unless you know of a way for
>these window types to accept reply data from a submit process.
>
>Walter
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript






_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the Javascript mailing list