I have the code to show the width and height for the viewport, but not the actual window size.
Any idea how I can get the window size?
No, you cannot get the size of the browser panels.
The closest you can get is if the user has maximized the window, you can take the screen size and subtract the window size, and it will leave you with the size of the toolbars.
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