aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/windoweventhandlers
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/windoweventhandlers')
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/index.html96
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html54
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onbeforeunload/index.html48
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onlanguagechange/index.html50
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onmessage/index.html52
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onmessageerror/index.html76
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onstorage/index.html54
7 files changed, 7 insertions, 423 deletions
diff --git a/files/zh-cn/web/api/windoweventhandlers/index.html b/files/zh-cn/web/api/windoweventhandlers/index.html
index f4251936cb..7cebdc009c 100644
--- a/files/zh-cn/web/api/windoweventhandlers/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/index.html
@@ -86,101 +86,7 @@ translation_of: Web/API/WindowEventHandlers
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox (Gecko)</th>
- <th>Chrome</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>onhashchange</code></td>
- <td>{{CompatGeckoDesktop(1.9.2)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>onlanguage</code>{{experimental_inline}}</td>
- <td>{{CompatGeckoDesktop(32)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>onstorage</code></td>
- <td>{{CompatGeckoDesktop(45)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Android</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>onhashchange</code></td>
- <td>{{CompatGeckoMobile(1.9.2)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>onlanguage</code>{{experimental_inline}}</td>
- <td>{{CompatGeckoMobile(32)}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>onstorage</code></td>
- <td>{{CompatGeckoDesktop(45)}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- <td rowspan="1">{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers")}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html b/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
index be2cd99dd0..8d5e46f2aa 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
@@ -42,59 +42,7 @@ translation_of: Web/API/WindowEventHandlers/onafterprint
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>6.0</td>
- <td>{{CompatVersionUnknown}}</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 Webview</th>
- <th>Chrome for Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers.onafterprint")}}
<h2 id="更多请见">更多请见</h2>
diff --git a/files/zh-cn/web/api/windoweventhandlers/onbeforeunload/index.html b/files/zh-cn/web/api/windoweventhandlers/onbeforeunload/index.html
index 3d2b1bd85d..b8f8dc5c71 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onbeforeunload/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onbeforeunload/index.html
@@ -49,53 +49,7 @@ original_slug: Web/API/Window/onbeforeunload
<h2 id="浏览器兼容性">浏览器兼容性</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>1</td>
- <td>1</td>
- <td>4</td>
- <td>12</td>
- <td>3</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers.onbeforeunload")}}
<h2 id="Specification" name="Specification">规范</h2>
diff --git a/files/zh-cn/web/api/windoweventhandlers/onlanguagechange/index.html b/files/zh-cn/web/api/windoweventhandlers/onlanguagechange/index.html
index ccabcc1c2e..3f5d1f8e5b 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onlanguagechange/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onlanguagechange/index.html
@@ -44,55 +44,7 @@ translation_of: Web/API/WindowEventHandlers/onlanguagechange
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<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</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatGeckoDesktop(32.0) }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatGeckoMobile(32.0) }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers.onlanguagechange")}}
<h2 id="参见">参见</h2>
diff --git a/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html b/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html
index c65d7ef861..49140c74b6 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html
@@ -31,54 +31,4 @@ window.onmessage = function(event) { ... }</pre>
<h2 id="浏览器兼容性">浏览器兼容性</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(60)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(47)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android Webview</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOperaMobile(47)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers.onmessage")}}
diff --git a/files/zh-cn/web/api/windoweventhandlers/onmessageerror/index.html b/files/zh-cn/web/api/windoweventhandlers/onmessageerror/index.html
index 609f9a9923..e7635c3da9 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onmessageerror/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onmessageerror/index.html
@@ -36,81 +36,7 @@ translation_of: Web/API/WindowEventHandlers/onmessageerror
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(57)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(47)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Available in workers</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(57)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(47)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android Webview</th>
- <th>Chrome for Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(57)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(47)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Available in workers</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatChrome(60)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(57)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(47)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers.onmessageerror")}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/api/windoweventhandlers/onstorage/index.html b/files/zh-cn/web/api/windoweventhandlers/onstorage/index.html
index fe7dc2a7cc..3598715d0e 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onstorage/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onstorage/index.html
@@ -43,56 +43,4 @@ translation_of: Web/API/WindowEventHandlers/onstorage
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<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>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop(45)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile" style="line-height: 19.0909080505371px;">
-<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>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(45)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.WindowEventHandlers.onstorage")}}