Re: How to pull window to the foreground - Window Focus
| From: | Bastien Koert | Date: | Mon, 27 Jul 2009 13:08:18 +0000 |
| Subject: | Re: How to pull window to the foreground - Window Focus | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295869@lists.php.net to get a copy of this message | ||
On Mon, Jul 27, 2009 at 8:31 AM, WebPat<webpat52@gmail.com> wrote:
> I have a web page with a button that displays additional information for the
> user. It does a Window.Open to create a "popup" window, then populates it.
>
> If the user goes back to the web page without closing the window, it often
> goes behind the browser and is not visible (which is not the problem). But
> if the user selects the button again, nothing appears to happen because the
> window remains behind the browser, although it is updated.
>
> The popup window has its own source file that populates it. I'd like to add
> a Window.Focus at the end of the population process. That should move the
> popup window to the foreground whenever it is refreshed. I can't get the
> code to actually do that. How can I make that popup window have focus?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
in the body tag add an onfocus event
<body onload="window.focus();">
--
Bastien
Cat, the other other white meat