Η ιδιότητα height του Window screen
- previousPage colorDepth
- Επόμενη σελίδα pixelDepth
- Επιστροφή στο προηγούμενο επίπεδο Window Screen
Definition and usage
height
The property returns the total height of the user's screen.
height
The property returns the height in pixels.
height
The property is read-only.
Tip:Please use width attribute Get the total width of the user's screen.
instance
Example 1
Get the total height of the screen:
let height = screen.height;
Example 2
All screen properties:
let text = "Total width/height: " + screen.width + "*" + screen.height + "<br>" "Available width/height: " + screen.availWidth + "*" + screen.availHeight + "<br>" "Color depth: " + screen.colorDepth + "<br>" "Color resolution: " + screen.pixelDepth;
syntax
screen.height
return value
type | description |
---|---|
number | The total height of the user's screen (in pixels). |
browserSupport
All browsers support screen.height
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
supported | supported | supported | supported | supported | supported |
relatedPages
- previousPage colorDepth
- Επόμενη σελίδα pixelDepth
- Επιστροφή στο προηγούμενο επίπεδο Window Screen