Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1072234 of ondeviceorientationabsolute

  • Revision slug: Web/API/Window/ondeviceorientationabsolute
  • Revision title: ondeviceorientationabsolute
  • Revision id: 1072234
  • Created:
  • Creator: PushpitaPikuDey
  • Is current revision? Yes
  • Comment Editorial review completed.

Revision Content

{{ ApiRef() }}{{Non-standard_header}}

Summary

An event handler for the {{ event("deviceorientationabsolute") }} event containing information about an absolute device orientation change.

Syntax

window.ondeviceorientationabsolute = function(event) { ... };
window.addEventListener('deviceorientationabsolute', function(event) { ... });

Specifications

This event handler is not currently part of any specification.

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatChrome(50.0)}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatChrome(50.0)}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatChrome(50.0)}}

See also

  • {{ event("deviceorientation") }}
  • {{ domxref("DeviceOrientationEvent") }}
  • {{domxref("Window.ondeviceorientation","ondeviceorientation")}}
  • Detecting device orientation

Revision Source

<p>{{ ApiRef() }}{{Non-standard_header}}</p>

<h2 id="Summary" name="Summary">Summary</h2>

<p>An event handler for the {{ event("deviceorientationabsolute") }} event containing information about an absolute device orientation change.</p>

<h2 id="Syntax" name="Syntax">Syntax</h2>

<pre class="syntaxbox">window.ondeviceorientationabsolute = function(event) { ... };
window.addEventListener('deviceorientationabsolute', function(event) { ... });
</pre>

<h2 id="Specifications">Specifications</h2>

<p>This event handler is not currently part of any specification.</p>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome(50.0)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatChrome(50.0)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatChrome(50.0)}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{ event("deviceorientation") }}</li>
 <li>{{ domxref("DeviceOrientationEvent") }}</li>
 <li>{{domxref("Window.ondeviceorientation","ondeviceorientation")}}</li>
 <li><a href="/en/Detecting_device_orientation" title="Detecting device orientation">Detecting device orientation</a></li>
</ul>
Revert to this revision