Discussion Locked

Close window without error

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

I don't want the "do you want to close" error.
Here's my code:

Untitled Document

4 replies

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

This discussion is closed to new replies.