Code for closing the browser with the help of a button?

Kmandapalli
Posted by Kmandapalli under JavaScript category on | Points: 40 | Views : 1505
<!-- 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.dotetfunda.com/"><span style="font-size: 8pt; text-decoration: none">DotNet Funda</span></a></font>

Comments or Responses

Login to post response