There are certain times, while your site visitors cruise around your Web page, that it would be nice to pop open a little window to show certain pages or images, without going to a whole new Webpage. Little popup windows are extremely handy for presenting information while keeping the visitor on the same page. Let's look at some of the neat things we can do with popup windows.
To begin with, we're going to use a Javascript HREF to do what we want. Associated with the "Open" action are three sections or parameters. In the code below, you see the following:
The first part is the webpage URL. The next is the "name" of the window (can be used for targeting). And the last section is any features for the window that will be popped open. This is explained further below.
»TEST all values set to 1 (on)
»TEST toolbar=0 (back, reload, home, etc.)
»TEST location=0 (url input field)
»TEST directories=0 (favorites)
»TEST status=0 (at bottom of page)
»TEST menubar=0 (file, edit, view, etc.)
»TEST scrollbars=0 (can the person scroll?)
»TEST resizable=0 (can the window be stretched)
»TEST width=600 (width of window in pixels)
»TEST height=400 (height of window in pixels)
»TEST all values set to 0 (off)
Adding a "close window button"
The close window button is nice to offer the reader. It can be in the form of a button, image, or a text link.