Friday, December 30, 2011

Close the browser with a button (java-tutorial)

s



<!-- Start of Close Browser Script -->
<!-- When the "Close Window" button is clicked, this script
    will close the browser window that the webpage is in.
-->
<script language="JavaScript">
<!--

function closeIt() {
  close();
}

// -->
</script>
<center>
<form>
<input type=button value="Close Window" onClick="closeIt()">
</form>
</center>
//