diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-05-28 12:36:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 12:36:36 -0700 |
commit | 05a7219ba9605649cb6daa281e26209eaa73adf0 (patch) | |
tree | 63c9443b214d52257ff4ef5546f9e70c8b7365cd /files/zh-cn/web/api | |
parent | 220a7d23b0755acc06146c1262aa09ba22d6e3b1 (diff) | |
download | translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.gz translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.bz2 translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.zip |
fix MacroWrongXRefError flaws for some domxref calls (#1018)
Diffstat (limited to 'files/zh-cn/web/api')
57 files changed, 178 insertions, 178 deletions
diff --git a/files/zh-cn/web/api/audiobuffersourcenode/index.html b/files/zh-cn/web/api/audiobuffersourcenode/index.html index 2d6ef36dae..d811cef4d6 100644 --- a/files/zh-cn/web/api/audiobuffersourcenode/index.html +++ b/files/zh-cn/web/api/audiobuffersourcenode/index.html @@ -60,7 +60,7 @@ translation_of: Web/API/AudioBufferSourceNode <dl> <dt>{{domxref("AudioBufferSourceNode.onended")}}</dt> - <dd>是一个 {{domxref("EventHandler")}} 类型,包含了与 {{event("ended_(Web_Audio)", "ended")}} 相关联的结束事件。</dd> + <dd>是一个 {{event("Event_handlers", "event handler")}} 类型,包含了与 {{event("ended_(Web_Audio)", "ended")}} 相关联的结束事件。</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/broadcastchannel/index.html b/files/zh-cn/web/api/broadcastchannel/index.html index 7ba7c289ea..d2b5763863 100644 --- a/files/zh-cn/web/api/broadcastchannel/index.html +++ b/files/zh-cn/web/api/broadcastchannel/index.html @@ -35,9 +35,9 @@ translation_of: Web/API/BroadcastChannel <h3 id="事件处理程序">事件处理程序</h3> </dt> <dt>{{domxref("BroadcastChannel.onmessage")}}</dt> - <dd>{{domxref("EventHandler")}} ,用于定义当该对象上触发了 {{event("message")}} 事件时要执行的函数。</dd> + <dd>{{event("Event_handlers", "event handler")}} ,用于定义当该对象上触发了 {{event("message")}} 事件时要执行的函数。</dd> <dt>{{domxref("BroadcastChannel.onmessageerror")}}</dt> - <dd>{{domxref("EventHandler")}} ,用于定义当该对象上触发了类型为 {{domxref("MessageError")}} 的 {{domxref("MessageEvent")}} 事件时要执行的函数。当接收到一条无法反序列化的消息时会触发此事件。</dd> + <dd>{{event("Event_handlers", "event handler")}} ,用于定义当该对象上触发了类型为 {{domxref("MessageError")}} 的 {{domxref("MessageEvent")}} 事件时要执行的函数。当接收到一条无法反序列化的消息时会触发此事件。</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html b/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html index 79044ba3cb..fd7d515eae 100644 --- a/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html +++ b/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html @@ -46,9 +46,9 @@ translation_of: Web/API/DedicatedWorkerGlobalScope <dl> <dt>{{domxref("DedicatedWorkerGlobalScope.onmessage")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised. These events are of type {{domxref("MessageEvent")}} and will be called when the worker receives a message from the document that started it (i.e. from the {{domxref("Worker.postMessage")}} method.)</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("message")}} event is raised. These events are of type {{domxref("MessageEvent")}} and will be called when the worker receives a message from the document that started it (i.e. from the {{domxref("Worker.postMessage")}} method.)</dd> <dt>{{domxref("DedicatedWorkerGlobalScope.onmessageerror")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("messageerror")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("messageerror")}} event is raised.</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/document/index.html b/files/zh-cn/web/api/document/index.html index 838834ffb7..06c1fca2a3 100644 --- a/files/zh-cn/web/api/document/index.html +++ b/files/zh-cn/web/api/document/index.html @@ -149,17 +149,17 @@ translation_of: Web/API/Document <dt>{{DOMxRef("Document.oncut")}} {{Non-standard_Inline}}</dt> <dd>Represents the event handling code for the {{event("cut")}} event.</dd> <dt>{{DOMxRef("Document.onfullscreenchange")}}</dt> - <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> <dt>{{DOMxRef("Document.onfullscreenerror")}}</dt> - <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> <dt>{{DOMxRef("Document.onpaste")}} {{Non-standard_Inline}}</dt> <dd>Represents the event handling code for the {{event("paste")}} event.</dd> <dt>{{DOMxRef("Document.onreadystatechange")}}</dt> <dd>Represents the event handling code for the {{event("readystatechange")}} event.</dd> <dt>{{DOMxRef("Document.onselectionchange")}} {{Experimental_Inline}}</dt> - <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> <dt>{{DOMxRef("Document.onvisibilitychange")}}</dt> - <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.</dd> </dl> <p>The <code>Document</code> interface is extended with the {{DOMxRef("GlobalEventHandlers")}} interface:</p> diff --git a/files/zh-cn/web/api/eventsource/index.html b/files/zh-cn/web/api/eventsource/index.html index 55a81c56ef..742c13bf3a 100644 --- a/files/zh-cn/web/api/eventsource/index.html +++ b/files/zh-cn/web/api/eventsource/index.html @@ -29,11 +29,11 @@ original_slug: Server-sent_events/EventSource <dl> <dt>{{domxref("EventSource.onerror")}}</dt> - <dd>是一个 {{domxref("EventHandler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd> + <dd>是一个 {{event("Event_handlers", "event handler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd> <dt>{{domxref("EventSource.onmessage")}}</dt> - <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd> + <dd>是一个 {{event("Event_handlers", "event handler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd> <dt>{{domxref("EventSource.onopen")}}</dt> - <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd> + <dd>是一个 {{event("Event_handlers", "event handler")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd> <dt>{{domxref("EventSource.readyState")}} {{readonlyinline}}</dt> <dd>一个 <code>unsigned </code> <code> short</code> 值,代表连接状态。可能值是 <code>CONNECTING</code> (<code>0</code>), <code>OPEN</code> (<code>1</code>), 或者 <code>CLOSED</code> (<code>2</code>)。</dd> <dt>{{domxref("EventSource.url")}} {{readonlyinline}}</dt> @@ -44,11 +44,11 @@ original_slug: Server-sent_events/EventSource <dl> <dt>{{domxref("EventSource.onerror")}}</dt> - <dd>Is an {{domxref("EventHandler")}} called when an error occurs and the {{domxref("EventSource/error_event", "error")}} event is dispatched on an <code>EventSource</code> object.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} called when an error occurs and the {{domxref("EventSource/error_event", "error")}} event is dispatched on an <code>EventSource</code> object.</dd> <dt>{{domxref("EventSource.onmessage")}}</dt> - <dd>Is an {{domxref("EventHandler")}} called when a {{domxref("EventSource/message_event", "message")}} event is received, that is when a message is coming from the source.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} called when a {{domxref("EventSource/message_event", "message")}} event is received, that is when a message is coming from the source.</dd> <dt>{{domxref("EventSource.onopen")}}</dt> - <dd>Is an {{domxref("EventHandler")}} called when an {{domxref("EventSource/open_event", "open")}} event is received, that is when the connection was just opened.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} called when an {{domxref("EventSource/open_event", "open")}} event is received, that is when the connection was just opened.</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/eventsource/onerror/index.html b/files/zh-cn/web/api/eventsource/onerror/index.html index dbc9dc3e2c..c7ab46f363 100644 --- a/files/zh-cn/web/api/eventsource/onerror/index.html +++ b/files/zh-cn/web/api/eventsource/onerror/index.html @@ -9,7 +9,7 @@ original_slug: Server-sent_events/EventSource/onerror <div> </div> -<p>{{domxref("EventSource")}} 的属性 <code><strong>onerror</strong></code> 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{domxref("EventHandler")}})</p> +<p>{{domxref("EventSource")}} 的属性 <code><strong>onerror</strong></code> 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{event("Event_handlers", "event handler")}})</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/eventsource/onopen/index.html b/files/zh-cn/web/api/eventsource/onopen/index.html index 9a4668264a..d7b087d023 100644 --- a/files/zh-cn/web/api/eventsource/onopen/index.html +++ b/files/zh-cn/web/api/eventsource/onopen/index.html @@ -10,7 +10,7 @@ original_slug: Server-sent_events/EventSource/onopen --- <div>{{APIRef('WebSockets API')}}</div> -<p>{{domxref("EventSource")}}接口的 <code><strong>onopen</strong></code> 属性是一个 {{domxref("EventHandler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p> +<p>{{domxref("EventSource")}}接口的 <code><strong>onopen</strong></code> 属性是一个 {{event("Event_handlers", "event handler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/fetchevent/index.html b/files/zh-cn/web/api/fetchevent/index.html index 2b33e9de41..ba0479710e 100644 --- a/files/zh-cn/web/api/fetchevent/index.html +++ b/files/zh-cn/web/api/fetchevent/index.html @@ -46,7 +46,7 @@ translation_of: Web/API/FetchEvent <dd>Resolves by returning a {{domxref("Response")}} or a <a href="http://fetch.spec.whatwg.org/#concept-network-error">network error</a> to <code style="font-style: normal;"><a href="http://fetch.spec.whatwg.org/#concept-fetch">Fetch</a></code>.</dd> <dt>{{domxref("ExtendableEvent.waitUntil", "ExtendableEvent.waitUntil()")}}</dt> <dd> - <p>Extends the lifetime of the event. It is intended to be called in the {{event("install")}} {{domxref("EventHandler")}} for the {{domxref("ServiceWorkerRegistration.installing", "installing")}} worker and on the {{event("active")}} {{domxref("EventHandler")}} for the {{domxref("ServiceWorkerRegistration.active", "active")}} worker.</p> + <p>Extends the lifetime of the event. It is intended to be called in the {{event("install")}} {{event("Event_handlers", "event handler")}} for the {{domxref("ServiceWorkerRegistration.installing", "installing")}} worker and on the {{event("active")}} {{event("Event_handlers", "event handler")}} for the {{domxref("ServiceWorkerRegistration.active", "active")}} worker.</p> </dd> </dl> diff --git a/files/zh-cn/web/api/globaleventhandlers/index.html b/files/zh-cn/web/api/globaleventhandlers/index.html index 3ddd4d9a93..defba0cdf7 100644 --- a/files/zh-cn/web/api/globaleventhandlers/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/index.html @@ -23,151 +23,151 @@ translation_of: Web/API/GlobalEventHandlers <dl> <dt>{{domxref("GlobalEventHandlers.onabort")}}</dt> - <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当停止{{event("abort")}} 事件触发时会被调用。</dd> + <dd>这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当停止{{event("abort")}} 事件触发时会被调用。</dd> <dt>{{domxref("GlobalEventHandlers.onanimationcancel")}} {{Non-standard_inline}}</dt> - <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当 CSS 动画取消{{event("animationcancel")}}事件触发时被调用,这表示某个正在执行的CSS动画被取消了。</dd> + <dd>这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当 CSS 动画取消{{event("animationcancel")}}事件触发时被调用,这表示某个正在执行的CSS动画被取消了。</dd> <dt>{{domxref("GlobalEventHandlers.onanimationend")}} {{Non-standard_inline}}</dt> - <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当 CSS 动画播放完成{{event("animationend")}} 事件触发时被调用,这表示某个CSS动画已经播放完成了。</dd> + <dd>这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当 CSS 动画播放完成{{event("animationend")}} 事件触发时被调用,这表示某个CSS动画已经播放完成了。</dd> <dt>{{domxref("GlobalEventHandlers.onblur")}}</dt> - <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当失去焦点 {{event("blur")}} 事件触发时会被调用。</dd> + <dd>这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当失去焦点 {{event("blur")}} 事件触发时会被调用。</dd> <dt>{{domxref("GlobalEventHandlers.onerror")}}</dt> - <dd>这是一个错误发生时的事件句柄 {{domxref("EventHandler")}} ,当发生错误{{event("error")}} 事件时会被调用。</dd> + <dd>这是一个错误发生时的事件句柄 {{event("Event_handlers", "event handler")}} ,当发生错误{{event("error")}} 事件时会被调用。</dd> <dt>{{domxref("GlobalEventHandlers.onfocus")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("focus")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("focus")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncancel")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("cancel")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("cancel")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncanplay")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("canplay")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("canplay")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncanplaythrough")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("canplaythrough")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("canplaythrough")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onchange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("change")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("change")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onclick")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("click")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("click")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onclose")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("close")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("close")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncontextmenu")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("contextmenu")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("contextmenu")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncuechange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("cuechange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("cuechange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondblclick")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dblclick")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dblclick")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondrag")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("drag")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("drag")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragend")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragend")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragend")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragenter")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragenter")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragenter")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragexit")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragexit")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragexit")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragleave")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragleave")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragleave")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragover")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragover")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragover")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragstart")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragstart")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragstart")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondrop")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("drop")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("drop")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondurationchange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("durationchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("durationchange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onemptied")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("emptied")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("emptied")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onended")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("ended")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("ended")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oninput")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("input")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("input")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oninvalid")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("invalid")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("invalid")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onkeydown")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keydown")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("keydown")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onkeypress")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keypress")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("keypress")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onkeyup")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keyup")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("keyup")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onload")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("load")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("load")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onloadeddata")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadeddata")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadeddata")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onloadedmetadata")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadedmetadata")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadedmetadata")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onloadstart")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadstart")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadstart")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousedown")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousedown")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mousedown")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseenter")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseenter")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseenter")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseleave")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseleave")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseleave")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousemove")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousemove")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mousemove")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseout")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseout")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseout")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseover")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseover")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseover")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseup")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseup")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseup")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousewheel")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousewheel")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mousewheel")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandler.onmozfullscreenchange")}} {{non-standard_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandler.onmozfullscreenerror")}} {{non-standard_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpause")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pause")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pause")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onplay")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("play")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("play")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onplaying")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("playing")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("playing")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerdown")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerdown")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerdown")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointermove")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointermove")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointermove")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerup")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerup")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerup")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointercancel")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointercancel")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointercancel")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerover")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerover")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerover")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerout")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerout")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerout")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerenter")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerevent")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerevent")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerleave")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerleave")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerleave")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerlockchange")}} {{experimental_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerlockchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerlockchange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerlockerror")}} {{experimental_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerlockerror")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerlockerror")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onprogress")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("progress")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("progress")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onratechange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("ratechange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("ratechange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onreset")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("reset")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("reset")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onscroll")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("scroll")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("scroll")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onseeked")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("seeked")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("seeked")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onseeking")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("seeking")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("seeking")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onselect")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("select")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("select")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onshow")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("show")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("show")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onsort")}} {{experimental_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("sort")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("sort")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onstalled")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("stalled")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("stalled")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onsubmit")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("submit")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("submit")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onsuspend")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("suspend")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("suspend")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ontimeupdate")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("timeupdate")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("timeupdate")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onvolumechange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("volumechange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("volumechange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onwaiting")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("waiting")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("waiting")}} event is raised.</dd> </dl> <h2 id="Methods">Methods</h2> diff --git a/files/zh-cn/web/api/globaleventhandlers/onauxclick/index.html b/files/zh-cn/web/api/globaleventhandlers/onauxclick/index.html index f99474b970..54a0357139 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onauxclick/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onauxclick/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/GlobalEventHandlers/onauxclick <div> </div> -<p><strong>onauxclick</strong> 属性是一个 {{domxref("EventHandler")}},当 {{event("auxclick")}} 事件发生时被调用,例如按下了输入设备上的非主按钮 (e.g. 鼠标中键)。</p> +<p><strong>onauxclick</strong> 属性是一个 {{event("Event_handlers", "event handler")}},当 {{event("auxclick")}} 事件发生时被调用,例如按下了输入设备上的非主按钮 (e.g. 鼠标中键)。</p> <p>实现该属性的一个目标是,提高浏览器与按钮行为之间的兼容性 - 事件行为正在更新,以便 {{Event("click")}} 只触发主按钮点击(例如,鼠标左键)。然后开发人员可以使用 {{Event("auxclick")}} 来为非主按钮点击提供明确的行为。在此之前,{{Event("click")}} 通常会针对所有输入设备按钮点击,浏览器行为有些不一致。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oncancel/index.html b/files/zh-cn/web/api/globaleventhandlers/oncancel/index.html index 9603f52914..e55bbfc0d2 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oncancel/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oncancel/index.html @@ -13,7 +13,7 @@ translation_of: Web/API/GlobalEventHandlers/oncancel --- <div>{{ApiRef("HTML DOM")}}</div> -<p>{{domxref("GlobalEventHandlers")}} 的<code><strong>oncancel</strong></code> 属性是一个{{domxref("EventHandler")}},它是用来处理发送给{{HTMLElement("dialog")}}元素的{{event("cancel")}} 事件的。</p> +<p>{{domxref("GlobalEventHandlers")}} 的<code><strong>oncancel</strong></code> 属性是一个{{event("Event_handlers", "event handler")}},它是用来处理发送给{{HTMLElement("dialog")}}元素的{{event("cancel")}} 事件的。</p> <p>当用户需要离开一个<dialog>元素的时候就会触发 <code>cancel</code> 事件. 这个事件处理器会防止事件向上传递,因此任何父处理器都不会接受到该事件。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oncanplay/index.html b/files/zh-cn/web/api/globaleventhandlers/oncanplay/index.html index e50e97572c..1e42163195 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oncanplay/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oncanplay/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/oncanplay --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}}的<strong><code>oncanplay</code></strong> 属性是{{domxref("EventHandler")}} 处理 {{event("canplay")}} 事件。</p> +<p>{{domxref("GlobalEventHandlers")}}的<strong><code>oncanplay</code></strong> 属性是{{event("Event_handlers", "event handler")}} 处理 {{event("canplay")}} 事件。</p> <p><code>当用户代理能够播放媒体时canplay</code> 事件被触发 , 但是预估没有加载全部的数据以支持媒体播放完毕。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html b/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html index 6e478aa535..e51567a9a9 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oncanplaythrough/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/oncanplaythrough --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>全局事件处理器({{domxref("GlobalEventHandlers")}} )之一的 {{event("canplaythrough")}} 属性,是处理当前元素{{event("canplaythrough")}} 事件的事件处理器{{domxref("EventHandler")}} .</p> +<p>全局事件处理器({{domxref("GlobalEventHandlers")}} )之一的 {{event("canplaythrough")}} 属性,是处理当前元素{{event("canplaythrough")}} 事件的事件处理器{{event("Event_handlers", "event handler")}} .</p> <p>当用户代理可以播放媒体资源并且可以播放至其结束而不必进一步缓冲内容时,触发<code>canplaythrough</code>事件。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onclick/index.html b/files/zh-cn/web/api/globaleventhandlers/onclick/index.html index f0e5322370..6a2cc3e73b 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onclick/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onclick/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/GlobalEventHandlers/onclick --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>全局事件处理器({{domxref("GlobalEventHandlers")}})之一的 <code><strong>onclick</strong></code> 属性,是处理当前元素的 {{event("click")}} 事件的事件处理器({{domxref("EventHandler")}})。</p> +<p>全局事件处理器({{domxref("GlobalEventHandlers")}})之一的 <code><strong>onclick</strong></code> 属性,是处理当前元素的 {{event("click")}} 事件的事件处理器({{event("Event_handlers", "event handler")}})。</p> <p>当用户点击一个元素时,会触发 <code>click</code> 事件。在每次点击的整个过程中,<code>click</code> 事件的运行顺序在 {{event("mousedown")}} 和 {{event("mouseup")}} 事件之后。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onclose/index.html b/files/zh-cn/web/api/globaleventhandlers/onclose/index.html index f7061e8243..4b1c4ca5c2 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onclose/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onclose/index.html @@ -15,7 +15,7 @@ translation_of: Web/API/GlobalEventHandlers/onclose --- <div>{{ApiRef("HTML DOM")}} {{SeeCompatTable}}</div> -<p>{{domxref("GlobalEventHandlers")}} mixin 的 <code><strong>onclose</strong></code> 属性是一个 {{domxref("EventHandler")}}, 用来处理发送给 {{HTMLElement("dialog")}} 元素的 {{event("close")}} 事件。</p> +<p>{{domxref("GlobalEventHandlers")}} mixin 的 <code><strong>onclose</strong></code> 属性是一个 {{event("Event_handlers", "event handler")}}, 用来处理发送给 {{HTMLElement("dialog")}} 元素的 {{event("close")}} 事件。</p> <p>当用户关闭一个 <code><dialog></code> 时,<code>close</code> 事件将被触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oncontextmenu/index.html b/files/zh-cn/web/api/globaleventhandlers/oncontextmenu/index.html index 89baebd1e1..9b72a860ee 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oncontextmenu/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oncontextmenu/index.html @@ -11,7 +11,7 @@ tags: --- <div>{{ ApiRef("HTML DOM") }}</div> -<p><strong><code>oncontextmenu</code></strong> 是用来设置或获取全局事件({{domxref("GlobalEventHandlers")}})中 上下文菜单事件({{event("contextmenu")}}) 的处理函数({{domxref("EventHandler")}})。</p> +<p><strong><code>oncontextmenu</code></strong> 是用来设置或获取全局事件({{domxref("GlobalEventHandlers")}})中 上下文菜单事件({{event("contextmenu")}}) 的处理函数({{event("Event_handlers", "event handler")}})。</p> <p>当在窗口上单击鼠标右键时,通常会触发 <code>contextmenu</code> 事件。 除非阻止默认行为,否则浏览器上下文菜单将被激活。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oncuechange/index.html b/files/zh-cn/web/api/globaleventhandlers/oncuechange/index.html index 001cf49c01..d6d96462f0 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oncuechange/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oncuechange/index.html @@ -10,7 +10,7 @@ translation_of: Web/API/GlobalEventHandlers/oncuechange --- <div>{{ ApiRef("HTML DOM") }}</div> -<div><strong><code>oncuechange</code></strong> 属性属于{{domxref("GlobalEventHandlers")}},是一个处理{{event("cuechange")}}事件的{{domxref("EventHandler")}}。</div> +<div><strong><code>oncuechange</code></strong> 属性属于{{domxref("GlobalEventHandlers")}},是一个处理{{event("cuechange")}}事件的{{event("Event_handlers", "event handler")}}。</div> <div>当{{domxref("TextTrack")}}更改了当前显示的提示时,<code>cuechange</code> 事件将会触发。</div> diff --git a/files/zh-cn/web/api/globaleventhandlers/ondurationchange/index.html b/files/zh-cn/web/api/globaleventhandlers/ondurationchange/index.html index fad4e30ac8..4c50ab39df 100644 --- a/files/zh-cn/web/api/globaleventhandlers/ondurationchange/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/ondurationchange/index.html @@ -10,7 +10,7 @@ original_slug: Web/API/GlobalEventHandlers/时长改变 --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}} 的<strong><code>ondurationchange</code></strong>属性是一个处理 {{event("durationchange")}} 事件的{{domxref("EventHandler")}} 。</p> +<p>{{domxref("GlobalEventHandlers")}} 的<strong><code>ondurationchange</code></strong>属性是一个处理 {{event("durationchange")}} 事件的{{event("Event_handlers", "event handler")}} 。</p> <p><code><strong>durationchange</strong></code>事件会在<code>duration</code>发生变更时触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onended/index.html b/files/zh-cn/web/api/globaleventhandlers/onended/index.html index cd744371fa..a2271402f5 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onended/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onended/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onended --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>The <strong><code>onended</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} for processing {{event("ended")}} events.</p> +<p>The <strong><code>onended</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is the {{event("Event_handlers", "event handler")}} for processing {{event("ended")}} events.</p> <p>The <code>ended</code> event is fired when playback has stopped because the end of the media was reached.</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oninput/index.html b/files/zh-cn/web/api/globaleventhandlers/oninput/index.html index 6118a8cc8e..2314122aec 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oninput/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oninput/index.html @@ -8,7 +8,7 @@ translation_of: Web/API/GlobalEventHandlers/oninput --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}}mixin的<code><strong>oninput</strong></code>属性是{{domxref("EventHandler")}},它处理{{HTMLElement("input")}},{{HTMLElement("select")}}和 {{HTMLElement("textarea")}} 元素上的 {{event("input")}} 事件。 它还会在{{domxref("HTMLElement.contentEditable", "contenteditable")}} 或 {{domxref("Document.designMode", "designMode")}}打开的元素上处理这些事件。</p> +<p>{{domxref("GlobalEventHandlers")}}mixin的<code><strong>oninput</strong></code>属性是{{event("Event_handlers", "event handler")}},它处理{{HTMLElement("input")}},{{HTMLElement("select")}}和 {{HTMLElement("textarea")}} 元素上的 {{event("input")}} 事件。 它还会在{{domxref("HTMLElement.contentEditable", "contenteditable")}} 或 {{domxref("Document.designMode", "designMode")}}打开的元素上处理这些事件。</p> <div class="blockIndicator note"> <p>注意:与<code>oninput</code>不同的是, {{domxref("GlobalEventHandlers.onchange", "onchange")}} 事件处理程序不一定会针对元素值的每次更改而调用。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/oninvalid/index.html b/files/zh-cn/web/api/globaleventhandlers/oninvalid/index.html index c192d2ee5e..4ed48de1b9 100644 --- a/files/zh-cn/web/api/globaleventhandlers/oninvalid/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/oninvalid/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/GlobalEventHandlers/oninvalid --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}} 混合的<code><strong>oninvalid</strong></code>属性 是 {{domxref("EventHandler")}} 处理{{event("invalid")}} 事件。</p> +<p>{{domxref("GlobalEventHandlers")}} 混合的<code><strong>oninvalid</strong></code>属性 是 {{event("Event_handlers", "event handler")}} 处理{{event("invalid")}} 事件。</p> <p><code>invalid</code> 事件被触发当一个从属元素被勾选checked 并且与之前的选中方式不同。 有效的从属元素在表单之前被选中, 或者在 <code><a href="/en-US/docs/Learn/HTML/Forms/Form_validation">checkValidity()</a></code> 方法之后它自己的表单被调用。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onloadeddata/index.html b/files/zh-cn/web/api/globaleventhandlers/onloadeddata/index.html index a5f43df54a..bdcfe4be24 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onloadeddata/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onloadeddata/index.html @@ -8,7 +8,7 @@ translation_of: Web/API/GlobalEventHandlers/onloadeddata --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}}的<strong><code>onloadeddata</code></strong> 属性是事件 {{event("loadeddata")}}的处理{{domxref("EventHandler")}} 。</p> +<p>{{domxref("GlobalEventHandlers")}}的<strong><code>onloadeddata</code></strong> 属性是事件 {{event("loadeddata")}}的处理{{event("Event_handlers", "event handler")}} 。</p> <p><code>loadeddata</code> 事件当媒体资源的第一帧加载完成时被触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onloadedmetadata/index.html b/files/zh-cn/web/api/globaleventhandlers/onloadedmetadata/index.html index 7f2d977c24..c7f7fec671 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onloadedmetadata/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onloadedmetadata/index.html @@ -10,7 +10,7 @@ translation_of: Web/API/GlobalEventHandlers/onloadedmetadata --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}} mixin的<strong><code>onloadedmetadata</code></strong>属性是处理{{event("loadedmetadata")}}事件的{{domxref("EventHandler")}}。</p> +<p>{{domxref("GlobalEventHandlers")}} mixin的<strong><code>onloadedmetadata</code></strong>属性是处理{{event("loadedmetadata")}}事件的{{event("Event_handlers", "event handler")}}。</p> <p><code>loadedmetadata</code>事件在元数据(metadata)被加载完成后触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onloadend/index.html b/files/zh-cn/web/api/globaleventhandlers/onloadend/index.html index 0f9db1b169..8594edad5a 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onloadend/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onloadend/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onloadend --- <div>{{ApiRef}}</div> -<div>{{domxref("GlobalEventHandlers")}}的<strong><code>onloadend</code></strong> 属性是用来 表示触发{{event("loadend")}}事件时(资源加载进度停止时)的{{domxref("EventHandler")}}。</div> +<div>{{domxref("GlobalEventHandlers")}}的<strong><code>onloadend</code></strong> 属性是用来 表示触发{{event("loadend")}}事件时(资源加载进度停止时)的{{event("Event_handlers", "event handler")}}。</div> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/globaleventhandlers/onloadstart/index.html b/files/zh-cn/web/api/globaleventhandlers/onloadstart/index.html index 33bfbd734a..b6b60f9c45 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onloadstart/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onloadstart/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onloadstart --- <div>{{ApiRef}}</div> -<p>The <strong><code>onloadstart</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadstart")}} event is raised (when progress has begun on the loading of a resource.)</p> +<p>The <strong><code>onloadstart</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadstart")}} event is raised (when progress has begun on the loading of a resource.)</p> <h2 id="Syntax">Syntax</h2> diff --git a/files/zh-cn/web/api/globaleventhandlers/onlostpointercapture/index.html b/files/zh-cn/web/api/globaleventhandlers/onlostpointercapture/index.html index 2f8763c94d..ab570209ad 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onlostpointercapture/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onlostpointercapture/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onlostpointercapture --- <p>{{ApiRef("HTML DOM")}}</p> -<p><span class="seoSummary">The <strong><code>onlostpointercapture</code></strong> {{domxref("EventHandler")}} property of the {{domxref("GlobalEventHandlers")}} interface returns the event handler (function) for the {{event("lostpointercapture")}} event type.</span></p> +<p><span class="seoSummary">The <strong><code>onlostpointercapture</code></strong> {{event("Event_handlers", "event handler")}} property of the {{domxref("GlobalEventHandlers")}} interface returns the event handler (function) for the {{event("lostpointercapture")}} event type.</span></p> <p><font face="x-locale-heading-primary, zillaslab, Palatino, Palatino Linotype, x-locale-heading-secondary, serif"><span style="font-size: 40px;"><strong>语法</strong></span></font></p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onmouseenter/index.html b/files/zh-cn/web/api/globaleventhandlers/onmouseenter/index.html index 2a554abe9e..3d57503652 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onmouseenter/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onmouseenter/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onmouseenter --- <div>{{ ApiRef("HTML DOM") }}</div> -<div>{{domxref("GlobalEventHandlers")}}的<strong><code>onmouseenter</code></strong> 属性绑定 {{domxref("EventHandler")}} 后来处理{{event("mouseenter")}} 事件.</div> +<div>{{domxref("GlobalEventHandlers")}}的<strong><code>onmouseenter</code></strong> 属性绑定 {{event("Event_handlers", "event handler")}} 后来处理{{event("mouseenter")}} 事件.</div> <div> </div> diff --git a/files/zh-cn/web/api/globaleventhandlers/onmouseleave/index.html b/files/zh-cn/web/api/globaleventhandlers/onmouseleave/index.html index 0daf4fed44..2f7247c003 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onmouseleave/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onmouseleave/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onmouseleave --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}} mixin 中的 <strong><code>onmouseleave</code></strong> 属性是用于处理鼠标移出({{event("mouseleave")}})事件的事件管理器({{domxref("EventHandler")}})。</p> +<p>{{domxref("GlobalEventHandlers")}} mixin 中的 <strong><code>onmouseleave</code></strong> 属性是用于处理鼠标移出({{event("mouseleave")}})事件的事件管理器({{event("Event_handlers", "event handler")}})。</p> <p><code>mouseleave</code>事件在定点设备(通常来说指的是鼠标) 移出某个元素时触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onplay/index.html b/files/zh-cn/web/api/globaleventhandlers/onplay/index.html index ea8e8d654f..ed69fd8a84 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onplay/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onplay/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onplay --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>The <code><strong>onplay</strong></code><em> </em>property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} for processing {{event("play")}} events.</p> +<p>The <code><strong>onplay</strong></code><em> </em>property of the {{domxref("GlobalEventHandlers")}} mixin is the {{event("Event_handlers", "event handler")}} for processing {{event("play")}} events.</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/globaleventhandlers/onplaying/index.html b/files/zh-cn/web/api/globaleventhandlers/onplaying/index.html index 25b77afc32..48d21ccd83 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onplaying/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onplaying/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onplaying --- <div>{{ApiRef("HTML DOM")}}</div> -<p>The <strong><code>onplaying</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} for processing {{event("playing")}} events.</p> +<p>The <strong><code>onplaying</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is the {{event("Event_handlers", "event handler")}} for processing {{event("playing")}} events.</p> <p><code>playing</code> 事件将会在媒体做好播放准备后(因暂停或网络延迟而导致媒体数据缺失)触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/onreset/index.html b/files/zh-cn/web/api/globaleventhandlers/onreset/index.html index 7f43a32d5a..e0e189dc69 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onreset/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onreset/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onreset --- <p>{{ ApiRef() }}</p> -<p>The <code><strong>GlobalEventHandlers.onreset</strong></code> 属性包含 {{domxref("EventHandler")}} ,当收到一个{{event("reset")}} 事件时触发</p> +<p>The <code><strong>GlobalEventHandlers.onreset</strong></code> 属性包含 {{event("Event_handlers", "event handler")}} ,当收到一个{{event("reset")}} 事件时触发</p> <h2 id="Syntax" name="Syntax">语法</h2> diff --git a/files/zh-cn/web/api/globaleventhandlers/onsubmit/index.html b/files/zh-cn/web/api/globaleventhandlers/onsubmit/index.html index 1909ba0ef9..ea433d207f 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onsubmit/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onsubmit/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/GlobalEventHandlers/onsubmit --- <div>{{ ApiRef("HTML DOM") }}</div> -<p>{{domxref("GlobalEventHandlers")}} 的 <code><strong>onsubmit</strong></code> 属性是一个处理 {{event("submit")}} 的 {{domxref("EventHandler")}}。</p> +<p>{{domxref("GlobalEventHandlers")}} 的 <code><strong>onsubmit</strong></code> 属性是一个处理 {{event("submit")}} 的 {{event("Event_handlers", "event handler")}}。</p> <p><code>submit</code> 事件会在用户点击提交按钮(<code><input type="submit"/></code> 元素)提交表单时触发。</p> diff --git a/files/zh-cn/web/api/globaleventhandlers/ontransitioncancel/index.html b/files/zh-cn/web/api/globaleventhandlers/ontransitioncancel/index.html index e476a7a4a1..64de3157af 100644 --- a/files/zh-cn/web/api/globaleventhandlers/ontransitioncancel/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/ontransitioncancel/index.html @@ -5,10 +5,10 @@ translation_of: Web/API/GlobalEventHandlers/ontransitioncancel --- <div>{{APIRef("CSS3 Transitions")}}</div> -<p>{{domxref("GlobalEventHandlers")}}混合 的 <code><strong>ontransitioncancel</strong></code> 属性 是处理 {{event("transitioncancel")}} 事件的手柄{{domxref("EventHandler")}}.</p> +<p>{{domxref("GlobalEventHandlers")}}混合 的 <code><strong>ontransitioncancel</strong></code> 属性 是处理 {{event("transitioncancel")}} 事件的手柄{{event("Event_handlers", "event handler")}}.</p> <div class="blockIndicator note"> -<p>domxref("GlobalEventHandlers") 与 domxref("EventHandler"): dom修订版本的事件手柄。</p> +<p>domxref("GlobalEventHandlers") 与 event("Event_handlers", "event handler"): dom修订版本的事件手柄。</p> <p>event("transitioncancel"):transitioncancel事件</p> </div> diff --git a/files/zh-cn/web/api/globaleventhandlers/onwheel/index.html b/files/zh-cn/web/api/globaleventhandlers/onwheel/index.html index 217a85c8da..05dfa596ef 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onwheel/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onwheel/index.html @@ -15,7 +15,7 @@ translation_of: Web/API/GlobalEventHandlers/onwheel <h2 id="归纳说明">归纳说明</h2> -<p>{{domxref("GlobalEventHandlers")}} 的 <code>onwheel</code> 特性指向当前元素的滑轮滑动事件函数 {{domxref("EventHandler")}}。</p> +<p>{{domxref("GlobalEventHandlers")}} 的 <code>onwheel</code> 特性指向当前元素的滑轮滑动事件函数 {{event("Event_handlers", "event handler")}}。</p> <div class="blockIndicator note"> <p><strong>注意:</strong>不要混淆 <code>onwheel</code><strong> </strong>和 {{domxref("GlobalEventHandlers.onscroll", "onscroll")}}:<code>onwheel</code> 通常用于处理滑轮的滚动事件,而 <code>onscroll</code> 用于处理某个对象内容的滚动。</p> diff --git a/files/zh-cn/web/api/htmlbodyelement/index.html b/files/zh-cn/web/api/htmlbodyelement/index.html index a573d7165f..a530613fae 100644 --- a/files/zh-cn/web/api/htmlbodyelement/index.html +++ b/files/zh-cn/web/api/htmlbodyelement/index.html @@ -40,39 +40,39 @@ translation_of: Web/API/HTMLBodyElement <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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onmessage")}}</dt> - <dd>Is an {{domxref("EventHandler")}} called whenever an object receives a {{event("message")}} event. </dd> + <dd>Is an {{event("Event_handlers", "event handler")}} called whenever an object receives a {{event("message")}} event. </dd> <dt>{{domxref("WindowEventHandlers.onmessageerror")}}</dt> - <dd>Is an {{domxref("eventHandler")}} called whenever an object receives a {{event("messageerror")}} event.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} called whenever an object receives a {{event("messageerror")}} event.</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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onrejectionhandled")}}</dt> - <dd>An {{domxref("EventHandler")}} representing the code executed when the {{event("rejectionhandled")}} event is raised, indicating that a {{jsxref("Promise")}} was rejected and the rejection has been handled.</dd> + <dd>An {{event("Event_handlers", "event handler")}} representing the code executed when the {{event("rejectionhandled")}} event is raised, indicating that a {{jsxref("Promise")}} was rejected and the rejection has been handled.</dd> <dt>{{domxref("WindowEventHandlers.onresize")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("resize")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("resize")}} 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", "event handler")}} representing the code to be called when the {{event("storage")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onunhandledrejection")}}</dt> - <dd>An {{domxref("EventHandler")}} representing the code executed when the {{event("unhandledrejection")}} event is raised, indicating that a {{jsxref("Promise")}} was rejected but the rejection was not handled.</dd> + <dd>An {{event("Event_handlers", "event handler")}} representing the code executed when the {{event("unhandledrejection")}} event is raised, indicating that a {{jsxref("Promise")}} was rejected but the rejection was not handled.</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", "event handler")}} representing the code to be called when the {{event("unload")}} event is raised.</dd> </dl> <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/api/htmlmediaelement/onerror/index.html b/files/zh-cn/web/api/htmlmediaelement/onerror/index.html index 8589fdd95a..46a2e3faa7 100644 --- a/files/zh-cn/web/api/htmlmediaelement/onerror/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/onerror/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/HTMLMediaElement/onerror --- <div>{{APIRef("HTML DOM")}}</div> -<p>The <strong><code>onerror</code></strong> property of the {{domxref("HTMLMediaElement")}} interface is the {{domxref("EventHandler")}} for processing {{event("error")}} events.</p> +<p>The <strong><code>onerror</code></strong> property of the {{domxref("HTMLMediaElement")}} interface is the {{event("Event_handlers", "event handler")}} for processing {{event("error")}} events.</p> <p>The <code>error</code> event fires when some form of error occurs while attempting to load or perform the media.</p> diff --git a/files/zh-cn/web/api/mediadevices/ondevicechange/index.html b/files/zh-cn/web/api/mediadevices/ondevicechange/index.html index 4c9c9cb0e0..5648fc6957 100644 --- a/files/zh-cn/web/api/mediadevices/ondevicechange/index.html +++ b/files/zh-cn/web/api/mediadevices/ondevicechange/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/MediaDevices/ondevicechange --- <p>{{APIRef("Media Capture and Streams")}}</p> -<p><span class="seoSummary"> <strong><code>MediaDevices.ondevicechange</code></strong> 属性是一种{{domxref("EventHandler")}},当{{domxref("MediaDevices")}} 接口的{{event("devicechange")}}事件被触发时会被调用. 不论{{Glossary("user agent")}}媒体设备的设置是否可用, 或者网站或者应用发生变了都会触发。无论何时你都可以使用 {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}} 去更新可用设备列表.</span></p> +<p><span class="seoSummary"> <strong><code>MediaDevices.ondevicechange</code></strong> 属性是一种{{event("Event_handlers", "event handler")}},当{{domxref("MediaDevices")}} 接口的{{event("devicechange")}}事件被触发时会被调用. 不论{{Glossary("user agent")}}媒体设备的设置是否可用, 或者网站或者应用发生变了都会触发。无论何时你都可以使用 {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}} 去更新可用设备列表.</span></p> <h2 id="Syntax">Syntax</h2> diff --git a/files/zh-cn/web/api/mediarecorder/index.html b/files/zh-cn/web/api/mediarecorder/index.html index 9f233604bc..5f42134e79 100644 --- a/files/zh-cn/web/api/mediarecorder/index.html +++ b/files/zh-cn/web/api/mediarecorder/index.html @@ -68,7 +68,7 @@ translation_of: Web/API/MediaRecorder <dt>{{domxref("MediaRecorder.ondataavailable")}}</dt> <dd>调用它用来处理 {{event("dataavailable")}} 事件, 该事件可用于获取录制的媒体资源 (在事件的 <code>data</code> 属性中会提供一个可用的 {{domxref("Blob")}} 对象.)</dd> <dt>{{domxref("MediaRecorder.onerror")}}</dt> - <dd>An {{domxref("EventHandler")}} called to handle the {{event("recordingerror")}} event, including reporting errors that arise with media recording. These are fatal errors that stop recording.</dd> + <dd>An {{event("Event_handlers", "event handler")}} called to handle the {{event("recordingerror")}} event, including reporting errors that arise with media recording. These are fatal errors that stop recording.</dd> <dt>{{domxref("MediaRecorder.onpause")}}</dt> <dd>用来处理 {{event("pause")}} 事件, 该事件在媒体暂停录制时触发({{domxref("MediaRecorder.pause()")}}).</dd> <dt>{{domxref("MediaRecorder.onresume")}}</dt> diff --git a/files/zh-cn/web/api/mediastream/index.html b/files/zh-cn/web/api/mediastream/index.html index 049ea4a3f9..522fa4a8d1 100644 --- a/files/zh-cn/web/api/mediastream/index.html +++ b/files/zh-cn/web/api/mediastream/index.html @@ -28,11 +28,11 @@ translation_of: Web/API/MediaStream <dl> <dt>{{domxref("MediaStream.onaddtrack")}}</dt> - <dd>这是{{event("addtrack")}}事件在这个对象上触发时调用的事件处理器[{{domxref("EventHandler")}}],这时一个{{domxref("MediaStreamTrack")}}对象被添加到这个流。</dd> + <dd>这是{{event("addtrack")}}事件在这个对象上触发时调用的事件处理器[{{event("Event_handlers", "event handler")}}],这时一个{{domxref("MediaStreamTrack")}}对象被添加到这个流。</dd> <dt>{{domxref("MediaStream.onended")}}</dt> <dd>这是当流终止[{{event("ended (MediaStream)","ended")}}]时触发的事件。</dd> <dt>{{domxref("MediaStream.onremovetrack")}}</dt> - <dd>这是{{event("removetrack")}}事件在这个对象上触发事调用的事件处理器[{{domxref("EventHandler")}}],这时一个对象从流上移除。</dd> + <dd>这是{{event("removetrack")}}事件在这个对象上触发事调用的事件处理器[{{event("Event_handlers", "event handler")}}],这时一个对象从流上移除。</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/mediastreamtrack/index.html b/files/zh-cn/web/api/mediastreamtrack/index.html index 28db2b0b25..1b620d9d06 100644 --- a/files/zh-cn/web/api/mediastreamtrack/index.html +++ b/files/zh-cn/web/api/mediastreamtrack/index.html @@ -39,15 +39,15 @@ translation_of: Web/API/MediaStreamTrack <dl> <dt>{{domxref("MediaStreamTrack.onstarted")}}</dt> - <dd>这是{{event("started")}}事件在这个对象上被触发时调用的事件处理器{{domxref("EventHandler")}},这时一个新的{{domxref("MediaStreamTrack")}}对象被添加到轨道源上。</dd> + <dd>这是{{event("started")}}事件在这个对象上被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},这时一个新的{{domxref("MediaStreamTrack")}}对象被添加到轨道源上。</dd> <dt>{{domxref("MediaStreamTrack.onmute")}}</dt> - <dd>这是{{event("mute")}}事件在这个对象被触发时调用的事件处理器{{domxref("EventHandler")}},这时这个流被中断。</dd> + <dd>这是{{event("mute")}}事件在这个对象被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},这时这个流被中断。</dd> <dt>{{domxref("MediaStreamTrack.onunmute")}}</dt> - <dd>这是{{event("unmute")}}事件在这个对象上被触发时调用的事件处理器{{domxref("EventHandler")}},未实现。</dd> + <dd>这是{{event("unmute")}}事件在这个对象上被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},未实现。</dd> <dt>{{domxref("MediaStreamTrack.onoverconstrained")}}</dt> <dd>这是{{event("overconstrained")}}事件在这个对象上被触发时调用的事件处理器{{event("overconstrained")}},未实现。</dd> <dt>{{domxref("MediaStreamTrack.oneended")}}</dt> - <dd>这是{{event("ended_(MediaStream)", "ended")}}事件在这个对象被触发时调用的事件处理器{{domxref("EventHandler")}},未实现。</dd> + <dd>这是{{event("ended_(MediaStream)", "ended")}}事件在这个对象被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},未实现。</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/offlineaudiocontext/index.html b/files/zh-cn/web/api/offlineaudiocontext/index.html index 4f7a869dd2..4169678330 100644 --- a/files/zh-cn/web/api/offlineaudiocontext/index.html +++ b/files/zh-cn/web/api/offlineaudiocontext/index.html @@ -27,7 +27,7 @@ translation_of: Web/API/OfflineAudioContext <dl> <dt>{{domxref("OfflineAudioContext.oncomplete")}}</dt> - <dd>当进程完成时,基于事件版本的{{domxref("OfflineAudioContext.startRendering()")}} 被使用之后,{{domxref("EventHandler")}} 将会被调用,{{event("complete")}} 事件类型为 {{domxref("OfflineAudioCompletionEvent")}})被触发。</dd> + <dd>当进程完成时,基于事件版本的{{domxref("OfflineAudioContext.startRendering()")}} 被使用之后,{{event("Event_handlers", "event handler")}} 将会被调用,{{event("complete")}} 事件类型为 {{domxref("OfflineAudioCompletionEvent")}})被触发。</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/performance/onresourcetimingbufferfull/index.html b/files/zh-cn/web/api/performance/onresourcetimingbufferfull/index.html index e6bcbb1ec1..452955edf0 100644 --- a/files/zh-cn/web/api/performance/onresourcetimingbufferfull/index.html +++ b/files/zh-cn/web/api/performance/onresourcetimingbufferfull/index.html @@ -16,7 +16,7 @@ translation_of: Web/API/Performance/onresourcetimingbufferfull <dl> <dt>callback</dt> - <dd>一个当{{event("resourcetimingbufferfull")}} 事件触发时调用的{{domxref("EventHandler")}} 。</dd> + <dd>一个当{{event("resourcetimingbufferfull")}} 事件触发时调用的{{event("Event_handlers", "event handler")}} 。</dd> </dl> <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html b/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html index 418f180f79..d6d675b53a 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/RTCPeerConnection/ondatachannel --- <p>{{APIRef("WebRTC")}}{{SeeCompatTable}}</p> -<p><code><strong>RTCPeerConnection.ondatachannel </strong>属性</code>是一个{{domxref("EventHandler")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。</p> +<p><code><strong>RTCPeerConnection.ondatachannel </strong>属性</code>是一个{{event("Event_handlers", "event handler")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。</p> <p>在这个事件被收到的同时,这个{{domxref("RTCDataChannel")}} 实际上并没有打开,确保在open这个事件在<code>RTCDataChannel</code>触发以后才去使用它。</p> diff --git a/files/zh-cn/web/api/rtcpeerconnection/onicecandidate/index.html b/files/zh-cn/web/api/rtcpeerconnection/onicecandidate/index.html index 6389f53f6a..a0efcfed3a 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/onicecandidate/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/onicecandidate/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/RTCPeerConnection/onicecandidate --- <p>{{APIRef("WebRTC")}}</p> -<p><span class="seoSummary"> <code>RTCPeerConnection</code> 的属性 <strong>{{domxref("RTCPeerConnection.onicecandidate", "onicecandidate")}}</strong> (是一个事件触发器 {{domxref("EventHandler")}}) 能够让函数在事件{{event("icecandidate")}}发生在实例 {{domxref("RTCPeerConnection")}} 上时被调用。 <strong>只要本地代理{{Glossary("ICE")}} 需要通过信令服务器传递信息给其他对等端时就会触发</strong>。</span> 这让本地代理与其他对等体相协商而浏览器本身在使用时无需知道任何详细的有关信令技术的细节,只需要简单地应用这种方法就可使用您选择的任何消息传递技术将ICE候选发送到远程对等方。</p> +<p><span class="seoSummary"> <code>RTCPeerConnection</code> 的属性 <strong>{{domxref("RTCPeerConnection.onicecandidate", "onicecandidate")}}</strong> (是一个事件触发器 {{event("Event_handlers", "event handler")}}) 能够让函数在事件{{event("icecandidate")}}发生在实例 {{domxref("RTCPeerConnection")}} 上时被调用。 <strong>只要本地代理{{Glossary("ICE")}} 需要通过信令服务器传递信息给其他对等端时就会触发</strong>。</span> 这让本地代理与其他对等体相协商而浏览器本身在使用时无需知道任何详细的有关信令技术的细节,只需要简单地应用这种方法就可使用您选择的任何消息传递技术将ICE候选发送到远程对等方。</p> <h2 id="Syntax">Syntax</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html b/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html index b92a83228c..db43ee6ed5 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html @@ -3,7 +3,7 @@ title: RTCPeerConnection.ontrack slug: Web/API/RTCPeerConnection/ontrack translation_of: Web/API/RTCPeerConnection/ontrack --- -<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}<code><strong>RTCPeerConnection.ontrack</strong></code> 属性是一个 {{domxref("EventHandler")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。</p> +<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}<code><strong>RTCPeerConnection.ontrack</strong></code> 属性是一个 {{event("Event_handlers", "event handler")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/scriptprocessornode/index.html b/files/zh-cn/web/api/scriptprocessornode/index.html index d53e09691e..e131dadf23 100644 --- a/files/zh-cn/web/api/scriptprocessornode/index.html +++ b/files/zh-cn/web/api/scriptprocessornode/index.html @@ -57,7 +57,7 @@ translation_of: Web/API/ScriptProcessorNode <dl> <dt>{{domxref("ScriptProcessorNode.onaudioprocess")}}</dt> - <dd>Represents the {{domxref("EventHandler")}} to be called.</dd> + <dd>Represents the {{event("Event_handlers", "event handler")}} to be called.</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/websocket/onmessage/index.html b/files/zh-cn/web/api/websocket/onmessage/index.html index 27bcce6cf2..4bdcb51039 100644 --- a/files/zh-cn/web/api/websocket/onmessage/index.html +++ b/files/zh-cn/web/api/websocket/onmessage/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/WebSocket/onmessage --- <p>{{APIRef("Web Sockets API")}}</p> -<p><code><strong>WebSocket.onmessage</strong></code> 属性是一个当收到来自服务器的消息时被调用的 {{domxref("EventHandler")}}。它由一个{{domxref("MessageEvent")}}调用。</p> +<p><code><strong>WebSocket.onmessage</strong></code> 属性是一个当收到来自服务器的消息时被调用的 {{event("Event_handlers", "event handler")}}。它由一个{{domxref("MessageEvent")}}调用。</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/window/index.html b/files/zh-cn/web/api/window/index.html index d1e449cdc8..7d529a4c95 100644 --- a/files/zh-cn/web/api/window/index.html +++ b/files/zh-cn/web/api/window/index.html @@ -449,7 +449,7 @@ translation_of: Web/API/Window <dt>{{domxref("GlobalEventHandlers.onload")}}</dt> <dd>Called after all resources and the DOM are fully loaded. WILL NOT get called when the page is loaded from cache, such as with back button.</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", "event handler")}} representing the code to be called when the {{event("message")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousedown")}}</dt> <dd>Called when ANY mouse button is pressed.</dd> <dt>{{domxref("GlobalEventHandlers.onmousemove")}}</dt> @@ -481,7 +481,7 @@ translation_of: Web/API/Window <dt>{{domxref("GlobalEventHandlers.onselect")}}</dt> <dd>Called after text in an input field is selected</dd> <dt>{{domxref("GlobalEventHandlers.onselectionchange")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onstorage")}}</dt> <dd>Called when there is a change in session storage or local storage. See {{event("storage")}} event</dd> <dt>{{domxref("GlobalEventHandlers.onsubmit")}}</dt> diff --git a/files/zh-cn/web/api/windoweventhandlers/index.html b/files/zh-cn/web/api/windoweventhandlers/index.html index 72a8a78eb9..f4251936cb 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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..be2cd99dd0 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", "event handler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</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..a5673c741f 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", "event handler")}}。在打开打印对话窗口之前会触发这些事件。</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..c65d7ef861 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", "event handler")}} <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..f381cf2b64 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 handler")}} 处理 {{Event("unload")}} 事件的方法。该事件在关闭窗口资源和内容的时候触发。页面资源的清除工作会在 <code>unload</code> 事件之后进行。</p> <div class="blockIndicator note"> <p><strong>注意事项:</strong> 具备弹窗阻止功能的浏览器会忽略 <code>onunload</code> 事件回调中调用的 {{domxref("Window.open()")}} 方法。</p> diff --git a/files/zh-cn/web/api/worker/index.html b/files/zh-cn/web/api/worker/index.html index 915aceb681..552a122239 100644 --- a/files/zh-cn/web/api/worker/index.html +++ b/files/zh-cn/web/api/worker/index.html @@ -37,7 +37,7 @@ translation_of: Web/API/Worker <dt>{{domxref("Worker.onmessage")}}</dt> <dd>当{{domxref("MessageEvent")}}类型的事件冒泡到 worker 时,事件监听函数 {{ domxref("EventListener") }} 被调用. 例如,一个消息通过 {{domxref("DedicatedWorkerGlobalScope.postMessage")}},从执行者发送到父页面对象,消息保存在事件对象的 {{domxref("MessageEvent.data", "data")}} 属性中.</dd> <dt>{{domxref("Worker.onmessageerror")}}</dt> - <dd>当{{event("messageerror")}} 类型的事件发生时,对应的{{domxref("EventHandler")}} 代码被调用。</dd> + <dd>当{{event("messageerror")}} 类型的事件发生时,对应的{{event("Event_handlers", "event handler")}} 代码被调用。</dd> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/worker/onmessage/index.html b/files/zh-cn/web/api/worker/onmessage/index.html index 9fb062c24f..5baa117035 100644 --- a/files/zh-cn/web/api/worker/onmessage/index.html +++ b/files/zh-cn/web/api/worker/onmessage/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/Worker/onmessage --- <p>{{APIRef("Web Workers API")}}</p> -<p>{{domxref("Worker")}} 接口的<strong><code>onmessage</code></strong>属性表示一个{{domxref("EventHandler")}}事件处理函数,当{{event("message")}} 事件发生时,该函数被调用。这些事件所属{{domxref("MessageEvent")}}类型,且当Worker子线程返回一条消息时被调用(比如:从{{domxref("DedicatedWorkerGlobalScope.postMessage")}}函数发出的信息)</p> +<p>{{domxref("Worker")}} 接口的<strong><code>onmessage</code></strong>属性表示一个{{event("Event_handlers", "event handler")}}事件处理函数,当{{event("message")}} 事件发生时,该函数被调用。这些事件所属{{domxref("MessageEvent")}}类型,且当Worker子线程返回一条消息时被调用(比如:从{{domxref("DedicatedWorkerGlobalScope.postMessage")}}函数发出的信息)</p> <div class="note"> <p><strong>注意</strong>: 消息被装载到 {{event("message")}}事件对象的<code>data</code>属性。(译者:即传递的消息参数将被赋值给<code>onmessage</code>处理函数的事件参数<code>e</code>中的<code>data</code>属性)</p> diff --git a/files/zh-cn/web/api/workerglobalscope/index.html b/files/zh-cn/web/api/workerglobalscope/index.html index 8d9fef8dd7..60d0b88373 100644 --- a/files/zh-cn/web/api/workerglobalscope/index.html +++ b/files/zh-cn/web/api/workerglobalscope/index.html @@ -50,18 +50,18 @@ translation_of: Web/API/WorkerGlobalScope <dl> <dt>{{domxref("WorkerGlobalScope.onerror")}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("error")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("error")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.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", "event handler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.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", "event handler")}} representing the code to be called when the {{event("online")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.onlanguagechange")}}</dt> - <dd>An {{domxref("EventHandler")}} fired at the global/worker scope object when the user's preferred languages change.</dd> + <dd>An {{event("Event_handlers", "event handler")}} fired at the global/worker scope object when the user's preferred languages change.</dd> </dl> <dl> <dt>{{domxref("WorkerGlobalScope.onclose")}} {{non-standard_inline}}</dt> - <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("close")}} event is raised.</dd> + <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("close")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.onrejectionhandled")}} {{non-standard_inline}}</dt> <dd>An event handler for handled <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" title="The Promise object is used for deferred and asynchronous computations. A Promise represents an operation that hasn't completed yet, but is expected in the future."><code>Promise</code></a> rejection events.</dd> <dt>{{domxref("WorkerGlobalScope.onunhandledrejection")}} {{non-standard_inline}}</dt> diff --git a/files/zh-cn/web/api/xmlhttprequest/index.html b/files/zh-cn/web/api/xmlhttprequest/index.html index 4498cb514e..2695292334 100644 --- a/files/zh-cn/web/api/xmlhttprequest/index.html +++ b/files/zh-cn/web/api/xmlhttprequest/index.html @@ -34,7 +34,7 @@ translation_of: Web/API/XMLHttpRequest <dl> <dt>{{domxref("XMLHttpRequest.onreadystatechange")}}</dt> - <dd>当 <code>readyState</code> 属性发生变化时,调用的 {{domxref("EventHandler")}}。</dd> + <dd>当 <code>readyState</code> 属性发生变化时,调用的 {{event("Event_handlers", "event handler")}}。</dd> <dt>{{domxref("XMLHttpRequest.readyState")}} {{readonlyinline}}</dt> <dd>返回 一个无符号短整型(<code>unsigned short</code>)数字,代表请求的状态码。</dd> <dt>{{domxref("XMLHttpRequest.response")}} {{readonlyinline}}</dt> @@ -61,7 +61,7 @@ translation_of: Web/API/XMLHttpRequest <dt>{{domxref("XMLHttpRequest.timeout")}}</dt> <dd>一个无符号长整型(<code>unsigned long</code>)数字,表示该请求的最大请求时间(毫秒),若超出该时间,请求会自动终止。</dd> <dt>{{domxref("XMLHttpRequestEventTarget.ontimeout")}}</dt> - <dd>当请求超时调用的 {{domxref("EventHandler")}}。{{ gecko_minversion_inline(" 12.0 ")}}</dd> + <dd>当请求超时调用的 {{event("Event_handlers", "event handler")}}。{{ gecko_minversion_inline(" 12.0 ")}}</dd> <dt>{{domxref("XMLHttpRequest.upload")}} {{readonlyinline}}</dt> <dd>{{domxref("XMLHttpRequestUpload")}},代表上传进度。</dd> <dt>{{domxref("XMLHttpRequest.withCredentials")}}</dt> |