You are here: irt.org | FAQ | JavaScript | Window | Q632 [ previous next ]
Only in Internet Explorer 5b2 and possibly Internet Explorer 4:
<HEAD> <SCRIPT LANGUAGE="JavaScript1.2"><!-- function microsoftKeyPress() { if (window.event.keyCode == 27) window.close(); } //--></SCRIPT> </HEAD> <BODY onKeyPress="microsoftKeyPress()"> </BODY>