Window.onvrdisplaydisconnect

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

The onvrdisplaydisconnect event handler property of the Window interface is called when a compatible VR display has been disconnected from the computer (when the vrdisplaydisconnect event fires).

The event object is of type VRDisplayEvent.

Syntax

window.onvrdisplaydisconnect = function() { ... };

Examples

window.onvrdisplaydisconnect = function() {
  info.textContent = 'Display disconnected.';
};

Specifications

Specification Status Comment
WebVR 1.1
The definition of 'onvrdisplaydisconnect' in that specification.
Draft Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No1 ?

634

555

No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ?562 3 ?55 No No Yes6

1. This feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

2. Chrome for Android 56 supports only Google Daydream View.

3. Chrome for Android 57 adds support for Google Cardboard.

4. Only Windows and macOS support is enabled.

5. Only Windows support is enabled.

6. Supported on Samsung Internet for GearVR.

See also

Document Tags and Contributors

Contributors to this page: wbamberg, chrisdavidmills, mattwojo, jpmedley, six
Last updated by: wbamberg,