You are here: irt.org | FAQ | JavaScript | Window | Q980 [ previous next ]
You don't seem to want a modal window - i.e. one that keeps on top and doesn't let you interact with other windows.
You can use a timer to bring the popup window to the top after a few seconds with:
<script language="JavaScript"><!-- var timer = ''; function blurred() { timer = setTimeout('self.focus()',5000); } function focused() { if (timer != '') clearTimeout(timer); } //--></script> <body onBlur="blurred()" onFocus="focused()">
Or in Netscape Navigator 4+ you could request extra privileges from the user when creating a window so that it is always raised:
<script language="JavaScript1.2"><!-- if (document.layers) { netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite'); } var windowHandle = window.open('http://www.irt.org/','windowName','alwaysRasied=yes'); //--></script>