Skip to content

Get available screen size in JavaScript

console.log("Total Available Width = " + window.screen.availWidth);
console.log("Total Available Height = " + window.screen.availHeight);

//Total Available Width = 1858
//Total Available Height = 1053
See also  Fraudulent Activity Notifications - Hackerrank Challenge - Java Solution

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.