Skip to main content
Accessibility Feedback
The Vanilla JS Toolkit
Methods & APIs
Utilities
Libraries
Boilerplates
Learning
Search
The Viewport
window.innerWidth
Get the viewport width.
let
viewportWidth
=
window
.
innerWidth
;