How to create pop-up ads using JavaScript....like we need more popups. *sigh*

This example uses three web pages:

open1.html, which is the main page. This page has the JavaScript to automatically load a popup insert as soon as the page loads. Run this page to see the whole effect.

Popup.html, which is a popup that automatically loads when the page loads. Click on this link and do "View, Source" to read the code and see how to do a pop-up linked to a form/button. In this page, the next pop-up does not run until you click on the button.

Popup2.html is a popup that loads when you click on a button in Popup.html (first popup). This page is just basic HTML text tags, and has no JavaScript. The controlling JavaScript is contained in Popup.html.
Return to the JavaScript examples page.