Close window without error
I don't want the "do you want to close" error.
Here's my code:
Untitled Document
Desktop
I don't want the "do you want to close" error.
Here's my code:
Untitled Document
by sonnaccino
by softcorp.us
Hello Sonna...
By design, a web browser is only supposed to allow JavaScript to close a window that was created by JavaScript. So, as coded, your page should not be able to close itself. There are exceptions. Netscape 6 and Opera allow it. And, you can trick Internet Explorer into allowing it by using the trick that appears below (see ADDED BY STEVE in your code).
Does this achieve your objective?
-----Steve Jackson
CEO/CSA
Software Corporation (Softcorp)
http://www.softcorp.us/probono
Advanced pro bono tools and utilities free for personal use
---
The modified code is:
Untitled Document
by sonnaccino
Thanks a million!
by sonnaccino
This discussion is closed to new replies.
Sort by Trending