Tuesday, March 15, 2011

Javascript Code: Close the browser with a button

To close the IE or you can close the windows and exit from windows and popup

<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydat -->
<!-- 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>

<!-- End of Close Browser Script -->
<font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>

No comments:

Post a Comment