Hi,
I have a script that opens a window that will close itself after a pre-set time. The popup is launched automatically when the launching page loads.
My problem is that my launching page USES FRAMES and it doesn't work with it.
Help me! Please
--The Script--
Launching page code:
<head>
<script>
var theURL = 'thePopupPage.html';
var width = 300;
var height = 400;
function popWindow() {
newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height);
}
</script>
</head>
<body onload="popWindow()">
Popup code:
<script>
var howLong = 10000;
t = null;
function closeMe(){
t = setTimeout("self.close()",howLong);
}
</script>
<body onload="closeMe();self.focus()">
I have a script that opens a window that will close itself after a pre-set time. The popup is launched automatically when the launching page loads.
My problem is that my launching page USES FRAMES and it doesn't work with it.
Help me! Please
--The Script--
Launching page code:
<head>
<script>
var theURL = 'thePopupPage.html';
var width = 300;
var height = 400;
function popWindow() {
newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height);
}
</script>
</head>
<body onload="popWindow()">
Popup code:
<script>
var howLong = 10000;
t = null;
function closeMe(){
t = setTimeout("self.close()",howLong);
}
</script>
<body onload="closeMe();self.focus()">