JavaScript Reference/Javascript Properties/height 2

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

"height" Example

    
<html>
<body>
<button onclick="alert(screen.height);">Screen Height</button>
</body>
</html>



"height" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |document                        event                         |
|                |screen                                                        |
+----------------+--------------------------------------------------------------+



"height" Syntax and Note

Note:
Read-only property. 
Returns the object height in pixels.
    
Syntax:
    
objectName.height