Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1338 How can I keep two popup windows in focus?

You are here: irt.org | FAQ | JavaScript | Window | Q1338 [ previous next ]

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.

©2018 Martin Webb