Last active
April 10, 2016 16:46
-
-
Save randallreedjr/057c9a23451dfb56a37828795be1a31a to your computer and use it in GitHub Desktop.
Function to display window width when resizing in Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var onresize = function() | |
{ | |
var width = window.innerWidth | |
|| document.documentElement.clientWidth | |
|| document.body.clientWidth; | |
console.log(width); | |
} | |
//Source: http://stackoverflow.com/questions/35930283/chrome-does-not-show-width-and-height-of-screen-when-inspecting-the-page-with-in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment