Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The onvrdisplayfocus
property of the
Window
interface represents an event handler that will run when
presentation to a display has resumed after being blurred (when the
vrdisplayfocus
event fires).
The event object is of type VRDisplayEvent
.
Syntax
window.onvrdisplayfocus = function() { ... };
Examples
window.onvrdisplayfocus = function() {
info.textContent = 'Display focused.';
};
Specifications
Specification | Status | Comment |
---|---|---|
WebVR 1.1 The definition of 'onvrdisplayfocus' in that specification. |
Draft | Initial definition |
Browser compatibility
BCD tables only load in the browser
See also
- WebVR API homepage
- https://mixedreality.mozilla.org/ — demos, downloads, and other resources from the Mozilla VR team.