window.close() not working without enable "dom.allow_scripts_to_close_windows"
Dears,
I using window.close() but not working without enable "dom.allow_scripts_to_close_windows", i tried to use netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); but the issue not solved.
Thanks,
Dears,
I using window.close() but not working without enable "dom.allow_scripts_to_close_windows", i tried to use netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); but the issue not solved.
Thanks,
Alle Antworten (1)
That is how this pref works. If set to false then you can't close the window via JavaScript.
See also: