Dissecting a Pop-under
Right this way to the lab: Let's dissect a pop-under window.
<HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"></SCRIPT> <TITLE>Pop Under Window</TITLE> </HEAD> <BODY onLoad=window.open('annoy.html').blur();window.focus();> <P> This window spawns a popunder. </BODY></HTML>
The code is so simple that it begs little discussion. In the body tag, we tell the browser that upon loading it will open a window using the source file annoy.html, blur that window, and then focus the parentbanishing annoy.html to the background.