کد:
<!-- Window Closer
Use either the form button or link to allow the user to close their browser
when they click it, great for custom pop-up banners !-->
<form>
<input type=button value="Close Window" onClick="javascript:window.close();">
</form> 
or <a href="javascript:window.close();">Close Window</a>