

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the properties of window.screen object in JavaScript?
The window.screen object is used to get information about user’s screen in JavaScript. The following are the properties of the window.screen object in JavaScript.
- screen.width − Width of the screen
- screen.height − Height of the screen
- screen.availWidth − Width of the screen excluding features like taskbar
- screen.availHeight − Height of the screen excluding features like taskbar
Example
You can try to run the following code to learn how to work with window.screen object in JavaScript −
<!DOCTYPE html> <html> <body> <script> document.write("Screen width: " + screen.width); document.write("<br>Screen height: " + screen.height); document.write("<br>Available Screen width: " + screen.availWidth); document.write("<br>Available Screen height: " + screen.availHeight); </script> </body> </html>
- Related Questions & Answers
- What are the properties of a boolean object in JavaScript?
- What are the properties of an array object in JavaScript?
- JavaScript Object Properties
- Sorting JavaScript object by length of array properties.
- What are the methods of a boolean object in JavaScript?
- What are the methods of an array object in JavaScript?
- What are the properties of MySQL user variables?
- What are the closure properties of Regular languages?
- What are the Properties of Data Encryption Standard?
- How to duplicate Javascript object properties in another object?
- What are the properties of array class in C#?
- What are the basic properties of products in TOC?
- What are the properties of Regular expressions in TOC?
- How to create object properties in JavaScript?
- How to delete object properties in JavaScript?
Advertisements