How to close a window
Description
window.close()
closes the window.
Example
<!DOCTYPE HTML>
<html>
<!-- w w w . j av a 2 s.c om-->
<body>
<script>
//window.close();
</script>
</body>
</html>
Uncomment out the statement to see the action.