JavaScript Screen ObjectThe JavaScript screen object holds information of browser screen. It can be used to display screen width, height, colorDepth, pixelDepth etc. The navigator object is the window property, so it can be accessed by: Or, Property of JavaScript Screen ObjectThere are many properties of screen object that returns information of the browser.
Example of JavaScript Screen ObjectLet’s see the different usage of screen object. Test it Nowscreen.width: 1366 screen.height: 768 screen.availWidth: 1366 screen.availHeight: 728 screen.colorDepth: 24 screen.pixelDepth: 24
Next TopicDocument Object Model (DOM)
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week