JavaScript Tutorial/Window/close
window.close (IE)
<HTML>
<BODY>
<H2>Welcome to the New Window!</H2>
<FORM name="myform">
<INPUT TYPE="button" value="Close Window" onClick="window.close();">
<P>
</FORM>
</BODY>
</HTML>
<HTML>
<BODY>
<H2>Welcome to the New Window!</H2>
<FORM name="myform">
<INPUT TYPE="button" value="Close Window" onClick="window.close();">
<P>
</FORM>
</BODY>
</HTML>