KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do I get the height and width of the browser viewport without scrollbars using jQuery? Here is what I have tried so far: var viewportWidth = $("body").innerWidth(); var viewportHeight = $("body").innerHeight(); This solution does not take into account the browser scrollbars.
Tags (comma-separated)
Save Edits
Cancel