Skip to content Skip to sidebar Skip to footer

Obtain The Viewport Dimensions

I have searched & searched but I seem unable to find a way to get the viewport width & height in JQuery. From my attempts it seems that the following gives me the dimension

Solution 1:

Use screen.width and screen.height instead, it will give the viewport's width and height.


Post a Comment for "Obtain The Viewport Dimensions"