Safari ignores window.close() after form submission

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

Safari 2.0.2 (416.12) seems to be unable to process the javascript:window.close() function after a form submission. The first time into the test page, the 'close' button works as expected. However after you've used the submit button, it is no longer functional. The click event is firing, but the close request is not being honoured.

Test page Workaround is not included
Reported by: ray berry.

(Orphaned), Safari | Reported on 6 December 2005.

Comments

(Add your own)

Posted by Mark Armstrong on 1 February 2006

1

I've found a workaround that will work in most (if not all) browsers.

If, when you open the window, you open it with a window.open() instead of using an href target, the window.close() will work.

Example:
http://www.rocketsciencegroup.com/_TEST/safari_bug/

Tested in: Safari 2.0.3,IE 6.0.2900,Win Firefox 1.0.1,Mac Firefox 1.0.2

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes