<a href="javascript:window.close();">Close This Window</a> <form> <input type=button value="Close This Window" onClick="javascript:window.close();"> </form>