JavaScript Reference/Javascript Methods/close

Материал из Web эксперт
Перейти к: навигация, поиск

"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()