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.


var visualViewport = Window.visualViewport


VisualViewport object.


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,