aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/ondeviceorientationabsolute/index.html
blob: b595d9852c044bdb5950a73d623d0987828f470d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: Window.ondeviceorientationabsolute
slug: Web/API/Window/ondeviceorientationabsolute
translation_of: Web/API/Window/ondeviceorientationabsolute
---
<p>{{ ApiRef() }}{{Non-standard_header}}</p>

<h2 id="Summary" name="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>



<p>{{Compat("api.Window.ondeviceorientationabsolute")}}</p>

<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>