C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
availWidth() and availHeight() property of the Screen Object in javascript
WhatsApp
Mahak Gupta
5y
9.1
k
0
1
25
Blog
availWidth() and availHeight() property of the Screen Object in javascript
availHeight
property is used to return the height of the visitor's screen.
<html>
<body>
<script type=
"text/javascript"
>
document.write(
"The Height of the Screen is: "
+ screen.availHeight);
</script>
</body>
</html>
availWidth
property is used to return the width of the visitor's screen.
<html>
<body>
<script type=
"text/javascript"
>
document.write(
"The Width of the Screen is: "
+ screen.availWidth);
</script>
</body>
</html>
People also reading
Membership not found