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.

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>

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>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.