You are here: Home » Programming » Web Tricks » AJAX + Close Window Firefox failure

AJAX + Close Window Firefox failure

It appears that in Firefox one must do somersaults to use javascript-opened windows and AJAX. There is a conflict between window.close() and AJAX and a delayed window.close() is prevented by a second Firefox bug where the window reference becomes corrupted in some way. The final solution appears to be to delay the AJAX call instead, using setTimeout().

Complete Test File

Leave a comment


Type the characters you see in the picture above.