The web page you are viewing is trying to close this window alert...
I have a link to a popup which refreshes itself to get rid of the toolsbars, etc. When the page refreshs, it notifys the user that 'the web page you are viewing is trying to close this window'.
There are reasons why I have it set up like this and why i'm not using the main html to control the attributes of the popup, so i can't change that..... but is there anyway to disable that alert??
Here is the code of my two files, i'm on window 2000 sp 3 and ie 6.0
(main.html)
<body>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"test.html">Click</a>
</body>
(test.html --this is the popup)
<head>
<script language='javascript'>
<!--
re=/^(\w|\W)+(\?ready)$/
if(re.exec(self.location)) {
}
else {
self.close()
window.open('test.html?ready','','toolbars=no')
window.resizeTo(300,200)
}
//-->
</script>
</head>
<body>
HELLO WORLD!
</body>
Any and all help will be appreciated. thanks!!
__________________
Lora C
I have a link to a popup which refreshes itself to get rid of the toolsbars, etc. When the page refreshs, it notifys the user that 'the web page you are viewing is trying to close this window'.
There are reasons why I have it set up like this and why i'm not using the main html to control the attributes of the popup, so i can't change that..... but is there anyway to disable that alert??
Here is the code of my two files, i'm on window 2000 sp 3 and ie 6.0
(main.html)
<body>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"test.html">Click</a>
</body>
(test.html --this is the popup)
<head>
<script language='javascript'>
<!--
re=/^(\w|\W)+(\?ready)$/
if(re.exec(self.location)) {
}
else {
self.close()
window.open('test.html?ready','','toolbars=no')
window.resizeTo(300,200)
}
//-->
</script>
</head>
<body>
HELLO WORLD!
</body>
Any and all help will be appreciated. thanks!!
__________________
Lora C