I usually use this to get document.documentElement.clientWidth; document.documentElement.clientHeight; but I just found out that some people don’t apply these two properties. I would like to ask how you can accurately get the width and height of the browser?
I usually use this to get document.documentElement.clientWidth; document.documentElement.clientHeight; but I just found out that some people don’t apply these two properties. I would like to ask how you can accurately get the width and height of the browser?
window.innerHeight gets the screen height window.innerWidth gets the screen width
window.innerHeigh