function closeWindow() {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
alert("This will close the window");
window.open('','_self');
window.close();
}
closeWindow();
More Related Contents:
- How can I tell if a DOM element is visible in the current viewport?
- JavaScript open in a new window, not tab
- What do {curly braces} around javascript variable name mean [duplicate]
- Link inside a button not working in Firefox
- Firefox ‘Cross-Origin Request Blocked’ despite headers [closed]
- Can I force a link to open in a specific browser?
- Firefox error rendering an SVG image to HTML5 canvas with drawImage
- event.path is undefined running in Firefox
- How JavaScript closures are garbage collected
- How can I detect visited and unvisited links on a page?
- JavaScript in or just before ?
- Using JavaScript to edit CSS gradient
- Missing click event for inside element on firefox
- Get current cursor position in a textbox
- Why aren’t Safari or Firefox able to process audio data from MediaElementSource?
- Firebug says “No Javascript on this page”, even though JavaScript does exist on the page
- windows.location.href not working on Firefox3
- How I can make a browser action button that looks and acts like a toggle
- TypeError: [API] is undefined in content script or Why can’t I do this in a content script?
- How can I inspect disappearing element in a browser?
- How to disable Javascript when using Selenium?
- How to get result of console.trace() as string in javascript with chrome or firefox?
- Programmatical click on -tag not working in Firefox
- Get selected text and selected nodes on a page?
- How to force save as dialog box in firefox besides changing headers?
- React Error: “SharedArrayBuffer is not defined” in Firefox
- chrome Pop-up blocker when to re-check after allowing page
- Error: Permission denied to access property ‘handler’
- Error: “Access to restricted URI denied”
- css transitions on new elements