Click to See Complete Forum and Search --> : Can I disable the webpage is trying to close alert


lora_3677
03-28-2003, 03:01 PM
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="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

lora_3677
03-28-2003, 03:30 PM
nevermind... i spoke before i searched extensively. and this was addressed in the forums in times past.

sorry!!!

now i know there is no way to close it if i didn't open it with JS.