Search completed in 1.20 seconds.
Screen.onorientationchange - Web APIs
Warning: This is a non-standard deprecated feature which was implemented only in Firefox under a different name. Use ScreenOrientation.onchange instead. An event handler for the orientationchange events sent to the screen object. Syntax screen.
onorientationchange = funcRef; Where funcRef is a reference to a function. Specifications Specification Status Comment Screen Orientation APIThe definition of '
onorientationchange' in that specification. Working Draft Initial definition (Not present in the draft anymore) ...
Index - Web APIs
operty Indicates how bright the screen's backlight is, on a scale from 0 (very dim) to 1 (full brightness); this value is a double-precision float. 3858 Screen.mozEnabled API, API:Mozilla Extensions, DOM, Deprecated, Non-standard, Property, Reference This Boolean attribute controls the device's screen. Setting it to false will turn off the screen. 3859 Screen.
onorientationchange API, CSSOM View, Deprecated, Event Handler, Property, Screen Orientation An event handler for the orientationchange events sent to the screen object. The ScreenOrientation.onchange handler should be used instead. 3860 Screen.orientation API, CSSOM View, Experimental, Property, Read-only, Screen Orientation, screen The orientation read-only property of the Screen int...
...ss to the network and the value of Navigator.onLine switches to false. 5048 Window: online event API, Event, Online, Reference, Window The online event of the Window interface is fired when the browser has gained access to the network and the value of Navigator.onLine switches to true. 5049 Window: orientationchange event API, Event, Reference, Sensors, Window,
onorientationchange The orientationchange event is fired when the orientation of the device has changed. 5050 Window: pagehide event API, Event, History, Navigation, Reference, Window, pagehide The pagehide event is sent to a Window when the browser hides the current page in the process of presenting a different page from the session's history. 5051 Window: pageshow event AP...
Screen - Web APIs
epth Gets the bit depth of the screen. Screen.top Returns the distance in pixels from the top side of the current screen. Screen.width Returns the width of the screen. Screen.mozEnabled Boolean. Setting to false will turn off the device's screen. Screen.mozBrightness Controls the brightness of a device's screen. A double between 0 and 1.0 is expected. Events handler Screen.
onorientationchange A handler for the orientationchange event. Methods Screen.lockOrientation Lock the screen orientation (only works in fullscreen or for installed apps) Screen.unlockOrientation Unlock the screen orientation (only works in fullscreen or for installed apps) Methods inherited from EventTarget: EventTarget.addEventListener() Registers an event handler of a specific event type on the E...
Window: orientationchange event - Web APIs
The orientationchange event is fired when the orientation of the device has changed. 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. Livin...
Window - Web APIs
load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid. Also available via the onerror property. languagechange Fired at the global scope object when the user's preferred language changes. Also available via the onlanguagechange property. orientationchange Fired when the orientation of the device has changed. Also available via the
onorientationchange property. devicemotion Fired at a regular interval, indicating the amount of physical force of acceleration the device is receiving and the rate of rotation, if available. deviceorientation Fired when fresh data is available from the magnetometer orientation sensor about the current orientation of the device as compared to the Earth coordinate frame. resize Fired when the window has been re...