Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser Width and Height

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?

like image 659
user1658756 Avatar asked Nov 12 '22 20:11

user1658756


1 Answers

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.

like image 179
Niet the Dark Absol Avatar answered Nov 15 '22 09:11

Niet the Dark Absol