Window.visualViewport

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The visualViewport read-only property of the Window interface returns a VisualViewport object which represents the visual viewport for a given window.

Syntax

var visualViewport = Window.visualViewport

Value

VisualViewport object.

Specifications

Specification Status Comment
Visual Viewport API
The definition of 'visualViewport' in that specification.
Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support60 ? No ?47 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6060 ? No47 ? ?

Document Tags and Contributors

Contributors to this page: connorshea, jpmedley
Last updated by: connorshea,