kometa
05-06-2004, 12:46 AM
I am having problems launching two pop up windows. I must be doing something wrong here and I cannot figure it out with all the forum searches and help sites. the script I have works in launching the first pop-up but not the second one. Any suggestions?
The script is as follows;
<script LANGUAGE=JavaScript1.1 type="text/javascript">
function nw() {
var sw = screen.width;
var sh = screen.height;
var wh = 400;
var ww = 900;
var wx = (sw-ww)/2;
var wy = (sh-wh)/2;
window.open('index2.html','Lunds','height='+wh+',width='+ww+',top='+wy+',left='+wx+',toolbar=no,menu bar=no,status=no,scrollbar=no,resizable=no,minimize=no,maximize=no');
}
</script>
<script>
function invite() {
window.open('invite.html','Lunds','height=400,width=400,toolbar=no,menubar=no,status=no,scrollbar=no ,resizable=no,minimize=no,maximize=no');
}
</script>
<body bgcolor="white" onLoad="nw();" onLoad="invite();">
The script is as follows;
<script LANGUAGE=JavaScript1.1 type="text/javascript">
function nw() {
var sw = screen.width;
var sh = screen.height;
var wh = 400;
var ww = 900;
var wx = (sw-ww)/2;
var wy = (sh-wh)/2;
window.open('index2.html','Lunds','height='+wh+',width='+ww+',top='+wy+',left='+wx+',toolbar=no,menu bar=no,status=no,scrollbar=no,resizable=no,minimize=no,maximize=no');
}
</script>
<script>
function invite() {
window.open('invite.html','Lunds','height=400,width=400,toolbar=no,menubar=no,status=no,scrollbar=no ,resizable=no,minimize=no,maximize=no');
}
</script>
<body bgcolor="white" onLoad="nw();" onLoad="invite();">