PDA

View Full Version : Suppressing a JS alert box


JimiGrunge
06-25-2002, 11:19 PM
For security reasons, I want to close a browser window when the button is clicked ( using the "window.close();" statement ). problem is I always get an alert/promt box saying:

"The web page you are viewing is trying to close the window. Do you want to close the window? Y/N".

Does anyone know how to suppress this box so it doesn't show.
If I can work this out I'll have a killer login script to post for everyone.

Thanks in advance, JimiGrunge(.com)

x_goose_x
06-26-2002, 01:02 AM
http://www.codingforums.com/ubb/Forum1/HTML/024104.html

Another interesting thing tho, *.hta files can be closed without user intervention. Can't be used on webpages, but are excuted off a pc like an exe, but are really only htm files with a renamed extention.

Tollman
06-27-2002, 05:46 AM
Did you ever figure out the answer to this?