PDA

View Full Version : How to make more popup windows with this script?



queerfm
06-13-2006, 03:58 PM
Hi i was wondering how can i make this have more popup links, Please help


<script>
function openpopup(){
var popurl="disipal.htm"
winpops=window.open(popurl,"","width=400,height=338,scrollbars,")
}

</script>

<a href="javascript: openpopup()">Click here to open window</a>

Twey
06-13-2006, 04:23 PM
<script type="text/javascript">
function popup(url){
window.open(url,"","width=400,height=338,scrollbars,");
return false;
}
</script>

<a href="one.html" onclick="return popup(this.href);">One</a>
<a href="two.html" onclick="return popup(this.href);">Two</a>
<a href="three.html" onclick="return popup(this.href);">Three</a>