Two pop windows open with this page.
Two windows are opened and they are positioned at (50,150) & (350,150).
See the code:
<html> <head><script language="JavaScript">
function
pop() {
pop1();
pop2();
}
function
pop1(){
var W1 = window.open('window5.htm','Popup1',"toolbar=no,status=no,location=yes,
directories=no,menubar=no,scrollbars=yes,resizable=yes,width=160,height=160");
W1.focus();
W1.moveTo(50,150);
}
function pop2(){
var W2 = window.open('window6.htm','Popup2',"toolbar=no,status=no,location=yes,
directories=no,menubar=no,scrollbars=yes,resizable=yes,width=160,height=160");
W2.focus();
W2.moveTo(350,150);
}
</script></head>
<body onload="pop()" >
</body></html>