Search completed in 1.22 seconds.
Index - Web APIs
3859 screen.
onorientationchange api, cssom view, deprecated, event handler, property, screen orientation an event handler for the orientationchange events sent to the screen object.
... 5049 window: orientationchange event api, event, reference, sensors, window,
onorientationchange the orientationchange event is fired when the orientation of the device has changed.
Window: orientationchange event - Web APIs
bubbles no cancelable no interface event event handler
onorientationchange example you can use the orientationchange event in an addeventlistener method: window.addeventlistener("orientationchange", function(event) { console.log("the orientation of the device is now " + event.target.screen.orientation.angle); }); or use the
onorientationchange event handler property: window.
onorientationchange = function(event) { console.log("the orientation of the device is now " + event.target.screen.orientation.angle); }; specifications specification status compatibility standardthe definition of 'orientationchange' in that specification.