0

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.

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by FC Jamison
0

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

<td>Soviet army, and four other "allies" invaded and 
<FONT COLOR="BLUE" onClick="MM_openBrWindow('august.html','','width=700,height=500')">
occupied</Font> Czechoslovak territory</td>

plus you have to embed this in <head> of html document

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,features);
}
//-->
</script>
0

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>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.