Skip to main content Accessibility Feedback

The Viewport

window.innerWidth

Get the viewport width.

let viewportWidth = window.innerWidth;