JavaScript - An open source scripting language, it allows the creation of dynamic web page content.  Home Web Programming JavaScript PopUp Window
Your Ad Here

PopUp Window


This code allows your links to pop-up in a new window. Just copy the code below:

<a href="/img_articles/1380/#" onClick="crush=window.open('PAGEURL.htm', 'popup', 'toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, width=NUMBER,height=NUMBER'); return false;">LINK TEXT OR IMAGE GOES HERE</a>

Where is says LINK TEXT OR IMAGE, replace it with your link text, or put an image there instead. Change NUMBER and NUMBER to the width and height of your window (in pixels).

Pop-up window example
Pop-up window example


Author's URL: Lindsay Coome
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

Web programming � everything from the basics of visual design and architecture to the specifics of applications, graphics, and scripting. More Web Programming: Most Popular Materials | Fresh Materials | More JavaScript Tutorials at LearnPHP.org

Add comments to "PopUp Window"

Only registered users can write comment

Reader's comments