954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to launch pop-up windows....

Hello everyone. I recently launched the website http://www.rochfest.co.uk to help promote Rochfest. Please check out the site if you get time.

What I wanted to ask is, is it possible to launch pop-up windows using javascript? If it is, how is this done? If this is not possible, do you know which kinds of scripts can be used to launch pop-ups? Thanks.

Steven.

Mushy-pea
Posting Whiz in Training
275 posts since Jun 2006
Reputation Points: 47
Solved Threads: 1
 

Yes you can use JavaScript to launch pop-up window

The example below launch new window on click of highlighted text, it does work as classic "a href", the window is of specific size
[HTML]
Soviet army, and four other "allies" invaded and

occupied Czechoslovak territory
[/HTML]

plus you have to embed this in of html document

[HTML]

[/HTML]

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

Use this code for each link you want to pop up in a new window:

<a href="javascript: window.open('test2.html',null, 'height=200,width=400,status=yes,toolbar=no,menubar=no,location=no'); self.close();">test</a>
FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You