Explanationįirst, you open the new window. See below for a far cleaner way of adding popupbehaviour to a link. To create a popup you'll need the following script: This gives several problems, most importantly the confusion over exactly what the URLof the popup is.
This site usesthe new system because it's much cleaner than the old one.įinally some notes about writing content directly into the popup. Then a new way of adding popup behaviour to a link. This small window is popularly known as a popup.įirst the basic syntax of how to create a popup, then an explanation of the script, including a table of the most common arguments you can give to a popup and the problem of focusing. This may be what you want, but at other times a small window on top of the largebrowser window is much better. You can add a TARGET='_blank' to the -tag, but thissimply opens a new browser window that completely obscures the old one. When the user clicks ona link, a new window opens and displays a page. Sometimes it's useful to add a popup to your pages.