|
|
Drifting Designs Tutorials > > Coding > > JavaScript > > Pop-UpsA pop-up is basically a pop-up, obviously. But some people don't know the difference between a pop-up and an alert. A pop-up is a webpage that pop-ups in your browser window. An alert, however, is not a webpage at all. Click on the links below to distinguish between what is a pop-up and what is an alert. Pop-Up Link Pop-Up Code 1) Insert the following code into your Body part of your page. 2) Replace the word "popupname" with the name of your pop-up, which can be anything you want. Note that the popupname occurs twice. Be sure to change popupname to the name of your pop-up in the two places that it appears. Now where it says the things like "menubar=0, resizable=1" and all that, replace with either 0 or 1. In this case, 0 means "no" and 1 means "yes." For example-
Also, you may specify the desired width and height in pixels of your pop-up where it says "height" and "width". 3) Now place the following code where you want your pop-up link to be - Remember to change where it says "popupname" to the name of your pop-up window. |
|
|||||||||||||