How to get the correct Browser Window width that displays in Chrome Developer DevTools instead of the jquery Window width value?

Use window.innerWidth or..


window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth

 

See:

https://stackoverflow.com/questions/43077348/window-width-returns-different-width-than-indicated-by-chrome-devtools

Leave a Reply

Your email address will not be published. Required fields are marked *