This is my code:
function closewindow() {
alert("This will close the window");
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.open('http://localhost/Authenticate/WebForm1.aspx','_self','');
window.close();
return false;
}
Works fine in IE, but not in Firefox and chrome.
In Firefox when dom.allow_scripts_to_close_window is set to true manually in about:config it works fine.
Tell how to set dom.allow_scripts_to_close_window in javascript OR Is their any other way to do this.