Using the window.close() Method to Close a Browser Window
<HTML> <BODY> <H1> I'm not even fully opened yet! <SCRIPT> if (window.confirm("Do you want to close the browser?")) window.close(); </SCRIPT> </H1> </BODY> </HTML>
Related Scripts with Example Source Code in same category :