Home > Articles > Web Development > HTML/CSS

  • Print
  • + Share This

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 parent—banishing annoy.html to the background.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.