How To Get Screen / Browser Size With JavaScript




In this tutorial, you’ll learn how to get the user’s screen (or browser) size using JavaScript. Recommended training (Free for 7 days): https://juniordevelopercentral.com/treehouse 👍

So if you want to to use JavaScript to get the screen size or browser size of a user you can access several properties on the window object. In the tutorial, we’ll cover how to access each of these properties and what they represent with relation to the user’s environment.

Original source