---
title: Window.visualViewport
slug: Web/API/Window/visualViewport
tags:
  - API
  - Property
  - Reference
  - Visual Viewport API
  - VisualViewport
  - Window
browser-compat: api.Window.visualViewport
---
{{APIRef("Visual Viewport")}}

The **`visualViewport`** read-only property of the
{{domxref("Window")}} interface returns a {{domxref("VisualViewport")}} object
representing the visual viewport for a given window.

## Value

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

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
