diff options
Diffstat (limited to 'files/zh-cn/web/api/windoweventhandlers')
5 files changed, 17 insertions, 17 deletions
diff --git a/files/zh-cn/web/api/windoweventhandlers/index.html b/files/zh-cn/web/api/windoweventhandlers/index.html index 72a8a78eb9..27d206782b 100644 --- a/files/zh-cn/web/api/windoweventhandlers/index.html +++ b/files/zh-cn/web/api/windoweventhandlers/index.html @@ -22,33 +22,33 @@ translation_of: Web/API/WindowEventHandlers <dl> <dt>{{domxref("WindowEventHandlers.onafterprint")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onbeforeprint")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onbeforeunload")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onhashchange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onmessage")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("message")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onoffline")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.ononline")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("online")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpagehide")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpageshow")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpopstate")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onstorage")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("storage")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("storage")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onunhandledrejection")}} {{experimental_inline}}</dt> <dd>An event handler for unhandled {{jsxref("Promise")}} rejection events.</dd> <dt>{{domxref("WindowEventHandlers.onunload")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("unload")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("unload")}} event is raised.</dd> </dl> <h2 id="Methods">Methods</h2> diff --git a/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html b/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html index cdf54dcead..3cbbe02468 100644 --- a/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html +++ b/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/WindowEventHandlers/onafterprint --- <div>{{ApiRef}}</div> -<p>{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{domxref("EventHandler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</p> +<p>{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{event("Event_handlers")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</p> <p>{{event("beforeprint")}}和<code>afterprint</code> 事件允许页面在打印开始前修改它们的内容(比如移除一个横幅等),打印结束后,这些修改会恢复原状。一般情况下,你更喜欢使用 <code><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#Media_types">@media print</a></code> CSS规则,但是在某些情况下这些事件会有他们的必要性。</p> diff --git a/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html b/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html index 834ca04cf0..8275fbd4ab 100644 --- a/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html +++ b/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/WindowEventHandlers/onbeforeprint --- <div>{{ApiRef}}</div> -<div>{{domxref("WindowEventHandlers")}}的<code><strong>onbeforeprint</strong></code>属性是用于处理当前窗口的{{event("beforeprint")}}事件的{{domxref("EventHandler")}}。在打开打印对话窗口之前会触发这些事件。</div> +<div>{{domxref("WindowEventHandlers")}}的<code><strong>onbeforeprint</strong></code>属性是用于处理当前窗口的{{event("beforeprint")}}事件的{{event("Event_handlers")}}。在打开打印对话窗口之前会触发这些事件。</div> <div></div> diff --git a/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html b/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html index bdbcdc3f2f..326ea04852 100644 --- a/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html +++ b/files/zh-cn/web/api/windoweventhandlers/onmessage/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/WindowEventHandlers/onmessage --- <p>{{APIRef("HTML DOM")}}{{ SeeCompatTable() }}</p> -<p>{{domxref("WindowEventHandlers")}}的<code><strong>onmessage</strong></code><strong> 属性是当对象接收到</strong>{{event("message")}} <strong>事件时被调用的</strong>{{domxref("EventHandler")}} <strong>.</strong></p> +<p>{{domxref("WindowEventHandlers")}}的<code><strong>onmessage</strong></code><strong> 属性是当对象接收到</strong>{{event("message")}} <strong>事件时被调用的</strong>{{event("Event_handlers")}} <strong>.</strong></p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/windoweventhandlers/onunload/index.html b/files/zh-cn/web/api/windoweventhandlers/onunload/index.html index 65b13fa59a..580592317a 100644 --- a/files/zh-cn/web/api/windoweventhandlers/onunload/index.html +++ b/files/zh-cn/web/api/windoweventhandlers/onunload/index.html @@ -8,7 +8,7 @@ original_slug: Web/API/Window/onunload <h3 id="Summary" name="Summary">概述</h3> -<p>{{domxref("WindowEventHandlers")}} 的混入特性 <strong><code>onunload</code></strong> 是 {{domxref("EventHandler")}} 处理 {{Event("unload")}} 事件的方法。该事件在关闭窗口资源和内容的时候触发。页面资源的清除工作会在 <code>unload</code> 事件之后进行。</p> +<p>{{domxref("WindowEventHandlers")}} 的混入特性 <strong><code>onunload</code></strong> 是 {{event("Event_handlers")}} 处理 {{Event("unload")}} 事件的方法。该事件在关闭窗口资源和内容的时候触发。页面资源的清除工作会在 <code>unload</code> 事件之后进行。</p> <div class="blockIndicator note"> <p><strong>注意事项:</strong> 具备弹窗阻止功能的浏览器会忽略 <code>onunload</code> 事件回调中调用的 {{domxref("Window.open()")}} 方法。</p> |