JavaScript Reference/Javascript Methods/close
"close()" Example
<html>
<body>
<button onclick="window.close();">Close window</button>
</body>
</html>
"close()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document window |
+----------------+--------------------------------------------------------------+
"close()" Syntax, Parameters and Note
Note:
Closes the current window or document.
Syntax:
objectName.close()