Discussion Locked

What's wrong with my code?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi everyone... I need help.

Is there a way for the message "The Web page you are viewing wants to close the window. Do you want to close the window?" not to show up when clicking on the link?

Here is my code:

test

Close This Window

Thank You in advance!!

3 replies

by shelleydoll

If you don't want to be prompted, you have to have opened the window in one of two ways:

1) The link to the current window must have opened into target="_blank" (as in Blah )
or
2) the link to the currentwindow must have used this javascript:
a href="javascript: window.open('blah.html','','status=yes'); void('');">

If you just used a normal link, or the window was opened directly (parent window), you'll be prompted when you try to close it.Good luck!

by shelleydoll

If you don't want to be prompted, you have to have opened the window in one of two ways:

1) The link to the current window must have opened into target="_blank" (as in Blah )
or
2) the link to the currentwindow must have used this javascript:
a href="javascript: window.open('blah.html','','status=yes'); void('');">

If you just used a normal link, or the window was opened directly (parent window), you'll be prompted when you try to close it.Good luck!

by gy24hz13

When you use javascript or vbscript to close a
"""BASE""" Internet Explorer window(not a popup window) it will ask you to close it or not.

No error in your code.
That is normal!!

This discussion is closed to new replies.