How TO - Get The Current Screen Size
Learn how to get the current screen size/browser window with JavaScript.
Current Screen Size
Usewindow.innerWidth andwindow.innerHeight to get the current screen size of a page.
This example displays the browser window's height and width (NOT including toolbars/scrollbars):
Read more about thewindow object in ourJavaScript Window Tutorial.

