Search completed in 1.01 seconds.
11 results for "orientationchange":
Screen.onorientationchange - Web APIs
WebAPIScreenonorientationchange
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.
Window: orientationchange event - Web APIs
WebAPIWindoworientationchange event
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.
Testing media queries programmatically - CSS: Cascading Style Sheets
WebCSSMedia QueriesTesting media queries
function handleorientationchange(mql) { // ...
...handleorientationchange(mediaquerylist); // add the callback function as a listener to the query list.
... mediaquerylist.addlistener(handleorientationchange); this code creates the orientation-testing media query list, then adds an event listener to it.
...And 2 more matches
Managing screen orientation - Web APIs
WebAPICSS Object ModelManaging screen orientation
listening orientation change the orientationchange event is triggered each time the device change the orientation of the screen and the orientation itself can be read with the screen.orientation property.
... screen.addeventlistener("orientationchange", function () { console.log("the orientation of the screen is: " + screen.orientation); }); preventing orientation change any web application can lock the screen to suits its own needs.
...if application a is locked to landscape and application b is locked to portrait, switching from application a to b or b to a will not fire an orientationchange event because both applications will keep the orientation they had.
... however, locking the orientation can fire an orientationchange event if the orientation had to be changed to satisfy the lock requirements.
Index - Web APIs
WebAPIIndex
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 - Web APIs
WebAPIWindow
orientationchange fired when the orientation of the device has changed.
... also available via the onorientationchange property.
Event reference
WebEvents
popuphidden popuphiding popupshowing popupshown tab events visibilitychange battery events chargingchange chargingtimechange dischargingtimechange levelchange call events alerting busy callschanged cfstatechange connecting dialing disconnected disconnecting error held, holding incoming resuming statechange voicechange sensor events compassneedscalibration devicemotion deviceorientation orientationchange smartcard events icccardlockerror iccinfochange smartcard-insert smartcard-remove stkcommand stksessionend cardstatechange sms and ussd events delivered received sent ussdreceived frame events mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserlocationchange mozbrowserloadend mozbrowserloadstart mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmo...
... orientationchange event screen orientation the orientation of the device (portrait/landscape) has changed.
Screen - Web APIs
WebAPIScreen
events handler screen.onorientationchange a handler for the orientationchange event.
Orientation and motion data explained - Developer guides
WebGuideEventsOrientation and motion data explained
if you want to detect changes in device orientation in order to compensate, you can use the orientationchange event.
User input and controls - Developer guides
WebGuideUser input methods
when screen.orientation changes, the screen.orientationchange event is fired on the screen object.
Browser detection using the user agent - HTTP
WebHTTPBrowser detection using the user agent
function(mq) { for (var i=0,len=mql.length|0; i<len; i=i+1|0) if (mql[i][0] === mq) mql.splice(i, 1); mq.removelistener(whenmediachanges); } : listentomediaquery; var orientationchanged = false; addeventlistener("orientationchange", function(){ orientationchanged = true; }, passive_listener_option); addeventlistener("resize", settimeout.bind(0,function(){ if (orientationchanged && !mediaqueryupdated) for (var i=0,len=mql.length|0; i<len; i=i+1|0) mql[i][1]( mql[i][0] ); mediaqueryupdated = orientationchanged = false; },0)); which part of the us...