Why doesn't the
window.close() method always work?
window.close()method could be used to close any open browser window. People being the malicious animals that they are, the
window . close ()command was exploited in practical jokes. For example, some jokers were able to rig their web pages so that a guest's browser would automatically close when he or she stumbled upon the joker's web page. This was never a threat to anyone's system, but it was still annoying because it caused users to "lose their place" on the web. (Closing a browser window usually destroys its history list.)
Netscape addressed this problem in Navigator 3.0 by restricting the ways in which
If you are using Navigator 3.0, you can see this new security feature in action by pressing the button below. (Caution: If you are using Navigator 2.0, pushing this button will close your browser window!)
8 Jan. 1997