2012-06-05

window.close() does not work in Firefox

In your firefox window, enter about:config (It will warn you, click I'll be carefull I promise button and proceed.) and see whether following line is set to false.

allow_scripts_to_close_windows

Entering the above value in the Filter box and will show it. If it's set to false, there is nothing you can do with the javascript. Set it to true will fix it on your browser but it won't affect for client browser. It's a browser setting. However, just double click on the value and you will see it's getting change to the true and it will bold out.

Now try again the window.close() method. Now it will work on Firefox.

1 comment:

sufiyaparveen said...

Thanks friend your post solved big problem. i will bookmarked your post.

Mobile Application Development Jaipur India