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

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).

PopUp Window
Pop-up window example


Author's URL: Lindsay Coome
JavaScript - An open source scripting language, it allows the creation of dynamic web page content. More JavaScript Tutorials: Featured Materials | Fresh Materials | More JavaScript Tutorials at LearnPHP.org

Reader's comments
comments kasi September 07, 2010 says:
thu!!!
Reply
comments Help me June 17, 2010 says:
I´m a zero in code! So i just can make some sites in flash, and my problem is that i took a java popup template from the internet, and now i want to adapte it to my web site.
I need that popup open when i click in a button.

Plese help me.

Thanks!

Reply
comments hiiiiiiiiiii March 05, 2010 says:
hiiiiiiiiiiiiiiiiiiiiiiiiiiii
Reply
Add comments to "PopUp Window"

Captcha