Friday 15 August 2008

Popup Window Link Generator (HTML)

Have you ever been stuck for an easy method of creating a pop-up window for a link or image. You can spend time coding your own javascript or CSS function to create the pop-up link or alternatively, if you aren't too bothered about using HTML and Javascript (rather than CSS) you can try Eric King's Popup Window Generator.

The script can be found on the DynamicDrive.com website here. In no time at all you can have a fully working popup link on your website by adding two pieces of dynamically created code.

Simply enter a few details into the form - the URL of the location, your window preferences (scroll bars, name, size etc) and click the GENERATE CODE button.

The site will then load two sections of code for you to use. The first is the Java Script which you'll need to paste into the HEAD AREA of your web page. This javascript takes care of the actual function.

Secondly the page displays your link code. Simply copy this link into your page wherever you want a link to open as a pop-up window (as many times as you like). You can use the link with text or images - it's up to you, just use the code to enclose your link.