'close()' Example : close « Javascript Methods « JavaScript Reference

'close()' Example

    
<html>
<body>
<button onclick="window.close();">Close window</button>
</body>
</html>

    
      
      

Related examples in the same category

1.'close()' Syntax, Parameters and Note
2.'close()' is applied to