Wednesday 27th February 2008Popup
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