Rate this script:  I Love it  /   I Hate it

Close current window (for IE and FF)


Code

<input type="button" value="Close" onclick="CloseWindow();" />
<script type='text/javascript'>
<!--
function CloseWindow() {
        ww = window.open(window.location, "_self");
        ww.close();
}
-->
</script>

 

 
Close current window (for IE and FF) scripts | Close current window (for IE and FF) snippet | Close current window (for IE and FF) example | Close current window (for IE and FF) tutorial | Close current window (for IE and FF) code