Skip to content

Instantly share code, notes, and snippets.

@randallreedjr
Last active April 10, 2016 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randallreedjr/057c9a23451dfb56a37828795be1a31a to your computer and use it in GitHub Desktop.
Save randallreedjr/057c9a23451dfb56a37828795be1a31a to your computer and use it in GitHub Desktop.
Function to display window width when resizing in Chrome
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