Window innerWidth and innerHeight Properties
suggest changeGet the viewport size in CSS pixels. innerWidth includes the vertical scrollbar when there is one.
const width = window.innerWidth
const height = window.innerHeight
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents