Or you could just use 1 function thus:
Code:
<script language="javascript">
function openPopUp(WindowURL,WindowName,X,Y){
var newPopUp = window.open(WindowURL,WindowName,'toolbar=no,location=no,directories=no,status=no,resizable=no,copyhistory=no,width=' + X +',height=' + Y)
}
</script>
and call it like this:
<a href="#" onclick="openPopUp('temp.html','myWin',200,200)">open</a>
<a href="#" onclick="openPopUp('temp.html','myWin2',250,300)">open</a>
by writing a function that accepts url, name, height, and width. you can use the same function with different arguments to create as many windows as you like.
Bookmarks