lots of code take some code, share some code!

Popup



The simplest way to create a javascript popup is to create a function like so.

<script language="javascript" type="text/javascript">
<!--
// I have called the popup showPop
function showPop(url)
{
// This is the part that opend the new window, we set the url, name and dimensions of the window
newwindow = window.open(url,'name','height=400,width=550');
}
// -->
</script>

And then add the following to the anchor link you would like to popup.

<a href="#" onclick="return showPop('http://www.google.co.uk')"> see my popup </a>

Leave a Reply

 
 
Please enter the word above into the box below, the word is not case sensitive.
 
If you have trouble reading the word above then click here to load a new word.
Security word: