awtherfrd
06-11-2007, 07:44 PM
I have wrote the following script to open a new window and close the parent window. It works great but I would like the parent window to stay open if the new window is blocked by a popup blocker.
Is there an easy way to do this?
The code I have now is as follows:
</head>
<html>
<head>
<script language=javascript>
function CloseWindow()
{
window.open('index.html','','')
window.open('','_self','');
window.close();
}
</script>
</head>
<body onload="CloseWindow()">
If your magazine does not load then click <a href="index.html">here</a> or enable pop-ups for this site.
</body>
</html>
Is there an easy way to do this?
The code I have now is as follows:
</head>
<html>
<head>
<script language=javascript>
function CloseWindow()
{
window.open('index.html','','')
window.open('','_self','');
window.close();
}
</script>
</head>
<body onload="CloseWindow()">
If your magazine does not load then click <a href="index.html">here</a> or enable pop-ups for this site.
</body>
</html>