Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1338 How can I keep two popup windows in focus?

irt.org | Knowledge Base | JavaScript | Window | Q1338 [ previous next ]

Q1338 How can I keep two popup windows in focus?

Use timers in each to continually set the focus to each popup window. Add the following code to each popup window:

<script language="JavaScript"><!--
function keepFocused() {
    self.focus();
    setTimeout('keepFocused()',100);
}

keepFocused();
//--></script>

Note that this will interfere with any forms field editing that the user may be performing.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.