![]() |
The Screen Object in HTML DOM is used to retrieve the information about the visitor; s or client screen. such as height and width of the screen and color resolution of the client screen. Note: There is no public standard that applies to the screen object. The Screen Object has some Properties:
Example: Below HTML code returns the height and width of the visitor’s screen. HTML
Output: Example 2: Below HTML CODE returns the pixelDepth property. HTML
Output: Supported Browsers:
|
Reffered: https://www.geeksforgeeks.org
HTML |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |