🔰viewport
🔰 JS ⟩ browser ⟩ DOM ⟩ types ⟩ Window ⟩ viewport
viewport size
size: (window.innerWidth, window.innerHeight) - includes scrollbars (if present)
position: (.scrollX, .scrollY) - relative to document coordinates.
returns the width/height of the window's layout viewport.
Last updated