Back to Content

Window: visualViewport property

files/en-us/web/api/window/visualviewport/index.md

latest391 B
Original Source

{{APIRef("CSSOM view API")}}

The visualViewport read-only property of the {{domxref("Window")}} interface returns a {{domxref("VisualViewport")}} object representing the visual viewport for a given window, or null if current document is not fully active.

Value

A {{domxref("VisualViewport")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}