<!-- FOUR STEPS TO INSTALL TOP WINDOW (opener.html):
1. Paste the coding into the HEAD of your \"opener\" HTML document
2. Copy the second coding into the BODY of your \"opener\" page
3. Create your pop-up page and save it as popup-page.html
4. Put the onBlur handler in the BODY of popup-page.html -->
<!-- STEP ONE: Copy this code into the HEAD of your \"opener\" page -->
<HEAD>
<SCRIPT LANGUAGE=\"JavaScript\">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
http://javascript.internet.com -->
<!-- Begin
function topWindow(){
popup = window.open(\"popup-page.html\",\"\",\"height=175,width=300,scrollbars=no\");
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this code the the BODY of your \"opener\" page -->
<BODY>
<CENTER>
<FORM>
<INPUT TYPE=\"BUTTON\" VALUE=\"Pop-Up\" onClick=\"topWindow()\">
</FORM>
</CENTER>
<p><center>
<font face=\"arial, helvetica\" size=\"-2\">Free JavaScripts provided<br>
by <a href=\"
http://javascriptsource.com\">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 0.92 KB -->
<!-- FOUR STEPS TO INSTALL TOP WINDOW (popup-page.html):
1. Paste the coding into the HEAD of your \"opener\" HTML document
2. Copy the second coding into the BODY of your \"opener\" page
3. Create pop-up page and save as popup-page.html
4. Put the onBlur handler in the BODY of popup-page.html -->
<!-- STEP THREE: Create pop-up page - save as popup-page.html -->
<!-- STEP FOUR: Add onBlur handler to BODY of popup-page.html -->
<BODY onBlur=\"self.focus()\">
<p><center>
<font face=\"arial, helvetica\" size=\"-2\">Free JavaScripts provided<br>
by <a href=\"
http://javascriptsource.com\">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 0.56 KB -->
En løsning jeg engang fik på Eksperten.dk - brugte den aldrig, men den skulle kunne gøre det.