Just as a quick reminder for myself; firefox diasallows closing the window with javascript, sometimes, e.g. on a kiosk comp, it’s very handy to have the browser closed by javascript.
-
Type about:config in the address bar and press Enter.
-
Find the setting dom.allow_scripts_to_close_windows.
-
Double-click on the setting to set it to true to enable scripts to close the browser window via close(). Set it to false to prevent scripts from closing windows via close().
Note: This setting is available in Firefox 3 and Firefox 2.