PDA

View Full Version : pop up windows



mickeymickeyg
03-13-2006, 10:18 AM
Hi

How would I create a link that opens maybr 2 or 3 pop up windows when the user clicks on the link?

Many thanks
Michael

ddadmin
03-14-2006, 10:24 AM
Something like this perhaps:


<script type="text/javascript">

function popup(urls){
for (var i=0; i<arguments.length; i++)
window.open(arguments[i])
return false
}

</script>

<a href="default.htm" onClick="return popup('http://google.com', 'http://yahoo.com')">Click here</a>

Warning: Google toolbar with popup blocker installed may disable the above script.