Main
Home
Contact Staff
Request
Graphics Directory

Site
Updates Archive
Previous Requests
History
FAQ
Terms
Previous Layouts
Staff
Affiliates
Credits
Link Back

Graphics
Avatars
Banners
MS Paint
Posters
Textures
Transparencies
Wallpapers
Miscellaneous

Drifting Designs Tutorials > > Coding > > JavaScript > > Pop-Ups




A 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-

  • Menubar= Put "1" if you want the menubar to show up on your pop-up; put "0" if you don't want it to show up.
  • Resizable= Put "1" if you want the pop-up to be resizable; put "0" if you don't want it to be resizable.
  • Scrollbars= Put "1" if you want the pop-up to have scrollbars; put "0" if you don't want it to be scrollable.
  • Toolbar= Put "1" if you want the toolbar to show up on your pop-up; put "0" if you don't want it to show up.

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 -

<a href="javascript:popupname()">Your Link</a>


Remember to change where it says "popupname" to the name of your pop-up window.
Layouts
Div Layouts
Frames Layouts
Pop-Up Layouts
Table Layouts

Neopets
Shop Signs
Guild Layouts
Full Page Layouts
Miscellanous

Tutorials
Coding
Graphics
Other

Hosted
Hosted by: