I want to get the window height and width including Address bar , status bar,etc...
How can I get the window full height and width as shown in the picture below ?
Note : I know about the window.innerHeight
and window.innerWidth
. It does not suits for this scenario. window.innerHeight
is used to get the DOM
height only.outerWidth
also does not gives what I have want.
Hope our stack users will give a good solution with cross browser compatibility.
use this if you want without scrollbars etc.. :
window.innerHeight; // for height
window.innerWidth; // for width
else in your case, if you want it full, use the below.
window.outerHeight; // for height
window.outerWidth; // for width
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With