Popup Windows


A popup window is a web browser window that is smaller than standard windows and without some of the standard features such as tool bars or status bars. For example, this link opens a medium-sized popup window. Popup windows (aka popups) are popular for small sidebar-style pages that are digressions from the main page.

Popups are one of the trickiest effects in web development. More than one web developer has been reduced to tears trying to get popups to work correctly. Furthermore, some irresponsible popup techniques have made many web pages handicapped and search engine innaccessible.

This tutorial will walk you step-by-step through creating popup windows, including giving you a complete set of copy-and-paste JavaScript code. We'll start with a basic example, showing the main pieces to a popup. Then we'll show the techniques for targeting a link inside the popup back to the main page. Finally we'll work through the many parameters for the open() command that adds features to your popups.

About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.