diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-05-28 12:05:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 12:05:52 -0700 |
commit | 220a7d23b0755acc06146c1262aa09ba22d6e3b1 (patch) | |
tree | 50a6ffafe663dc65f1a0f8816862d60e7ce23a33 /files/zh-cn/web | |
parent | 2958ec7e85c9a1182cd81728e3705948a2c39d71 (diff) | |
download | translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.gz translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.bz2 translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.zip |
Revert "replace some domxref macro calls with event macro calls (#1016)" (#1017)
This reverts commit 2958ec7e85c9a1182cd81728e3705948a2c39d71.
Diffstat (limited to 'files/zh-cn/web')
56 files changed, 177 insertions, 177 deletions
diff --git a/files/zh-cn/web/api/audiobuffersourcenode/index.html b/files/zh-cn/web/api/audiobuffersourcenode/index.html index 6b32b652f8..2d6ef36dae 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>是一个 {{event("Event_handlers")}} 类型,包含了与 {{event("ended_(Web_Audio)", "ended")}} 相关联的结束事件。</dd> + <dd>是一个 {{domxref("EventHandler")}} 类型,包含了与 {{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 cd650b8658..7ba7c289ea 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>{{event("Event_handlers")}} ,用于定义当该对象上触发了 {{event("message")}} 事件时要执行的函数。</dd> + <dd>{{domxref("EventHandler")}} ,用于定义当该对象上触发了 {{event("message")}} 事件时要执行的函数。</dd> <dt>{{domxref("BroadcastChannel.onmessageerror")}}</dt> - <dd>{{event("Event_handlers")}} ,用于定义当该对象上触发了类型为 {{domxref("MessageError")}} 的 {{domxref("MessageEvent")}} 事件时要执行的函数。当接收到一条无法反序列化的消息时会触发此事件。</dd> + <dd>{{domxref("EventHandler")}} ,用于定义当该对象上触发了类型为 {{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 e6acb236ac..79044ba3cb 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 {{event("Event_handlers")}} 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 {{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> <dt>{{domxref("DedicatedWorkerGlobalScope.onmessageerror")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("messageerror")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 c6c0716b83..838834ffb7 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 {{event("Event_handlers")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> + <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> <dt>{{DOMxRef("Document.onfullscreenerror")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> + <dd>Is an {{DOMxRef("EventHandler")}} 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 {{event("Event_handlers")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> + <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> <dt>{{DOMxRef("Document.onvisibilitychange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.</dd> + <dd>Is an {{DOMxRef("EventHandler")}} 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 ff7604c47d..55a81c56ef 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>是一个 {{event("Event_handlers")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd> + <dd>是一个 {{domxref("EventHandler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd> <dt>{{domxref("EventSource.onmessage")}}</dt> - <dd>是一个 {{event("Event_handlers")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd> + <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd> <dt>{{domxref("EventSource.onopen")}}</dt> - <dd>是一个 {{event("Event_handlers")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd> + <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{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 {{event("Event_handlers")}} 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 {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} 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 {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} called when an {{domxref("EventSource/open_event", "open")}} event is received, that is when the connection was just opened.</dd> + <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> </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 2cef28af42..dbc9dc3e2c 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触发时调用的一个事件处理函数({{event("Event_handlers")}})</p> +<p>{{domxref("EventSource")}} 的属性 <code><strong>onerror</strong></code> 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{domxref("EventHandler")}})</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 1d0e698a9c..9a4668264a 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> 属性是一个 {{event("Event_handlers")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p> +<p>{{domxref("EventSource")}}接口的 <code><strong>onopen</strong></code> 属性是一个 {{domxref("EventHandler")}} ,它在收到{{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 60b8585131..2b33e9de41 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")}} {{event("Event_handlers")}} for the {{domxref("ServiceWorkerRegistration.installing", "installing")}} worker and on the {{event("active")}} {{event("Event_handlers")}} 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")}} {{domxref("EventHandler")}} for the {{domxref("ServiceWorkerRegistration.installing", "installing")}} worker and on the {{event("active")}} {{domxref("EventHandler")}} 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 c175e7afce..3ddd4d9a93 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>这是一个事件句柄 {{event("Event_handlers")}} ,当停止{{event("abort")}} 事件触发时会被调用。</dd> + <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当停止{{event("abort")}} 事件触发时会被调用。</dd> <dt>{{domxref("GlobalEventHandlers.onanimationcancel")}} {{Non-standard_inline}}</dt> - <dd>这是一个事件句柄 {{event("Event_handlers")}} ,当 CSS 动画取消{{event("animationcancel")}}事件触发时被调用,这表示某个正在执行的CSS动画被取消了。</dd> + <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当 CSS 动画取消{{event("animationcancel")}}事件触发时被调用,这表示某个正在执行的CSS动画被取消了。</dd> <dt>{{domxref("GlobalEventHandlers.onanimationend")}} {{Non-standard_inline}}</dt> - <dd>这是一个事件句柄 {{event("Event_handlers")}} ,当 CSS 动画播放完成{{event("animationend")}} 事件触发时被调用,这表示某个CSS动画已经播放完成了。</dd> + <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当 CSS 动画播放完成{{event("animationend")}} 事件触发时被调用,这表示某个CSS动画已经播放完成了。</dd> <dt>{{domxref("GlobalEventHandlers.onblur")}}</dt> - <dd>这是一个事件句柄 {{event("Event_handlers")}} ,当失去焦点 {{event("blur")}} 事件触发时会被调用。</dd> + <dd>这是一个事件句柄 {{domxref("EventHandler")}} ,当失去焦点 {{event("blur")}} 事件触发时会被调用。</dd> <dt>{{domxref("GlobalEventHandlers.onerror")}}</dt> - <dd>这是一个错误发生时的事件句柄 {{event("Event_handlers")}} ,当发生错误{{event("error")}} 事件时会被调用。</dd> + <dd>这是一个错误发生时的事件句柄 {{domxref("EventHandler")}} ,当发生错误{{event("error")}} 事件时会被调用。</dd> <dt>{{domxref("GlobalEventHandlers.onfocus")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("focus")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("focus")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncancel")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("cancel")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("cancel")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncanplay")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("canplay")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("canplay")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncanplaythrough")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("canplaythrough")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("canplaythrough")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onchange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("change")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("change")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onclick")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("click")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("click")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onclose")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("close")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("close")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncontextmenu")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("contextmenu")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("contextmenu")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oncuechange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("cuechange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("cuechange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondblclick")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dblclick")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dblclick")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondrag")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("drag")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("drag")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragend")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dragend")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragend")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragenter")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dragenter")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragenter")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragexit")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dragexit")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragexit")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragleave")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dragleave")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragleave")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragover")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dragover")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragover")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondragstart")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("dragstart")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragstart")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondrop")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("drop")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("drop")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ondurationchange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("durationchange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("durationchange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onemptied")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("emptied")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("emptied")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onended")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("ended")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("ended")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oninput")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("input")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("input")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.oninvalid")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("invalid")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("invalid")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onkeydown")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("keydown")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keydown")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onkeypress")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("keypress")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keypress")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onkeyup")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("keyup")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keyup")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onload")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("load")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("load")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onloadeddata")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("loadeddata")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadeddata")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onloadedmetadata")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("loadedmetadata")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadedmetadata")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onloadstart")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("loadstart")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadstart")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousedown")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mousedown")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousedown")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseenter")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mouseenter")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseenter")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseleave")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mouseleave")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseleave")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousemove")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mousemove")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousemove")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseout")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mouseout")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseout")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseover")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mouseover")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseover")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmouseup")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mouseup")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseup")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onmousewheel")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("mousewheel")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpause")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pause")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pause")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onplay")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("play")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("play")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onplaying")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("playing")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("playing")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerdown")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerdown")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerdown")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointermove")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointermove")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointermove")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerup")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerup")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerup")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointercancel")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointercancel")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointercancel")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerover")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerover")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerover")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerout")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerout")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerout")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerenter")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerevent")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerevent")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerleave")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerleave")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerleave")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerlockchange")}} {{experimental_inline}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerlockchange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerlockchange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onpointerlockerror")}} {{experimental_inline}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pointerlockerror")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerlockerror")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onprogress")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("progress")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("progress")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onratechange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("ratechange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("ratechange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onreset")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("reset")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("reset")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onscroll")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("scroll")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("scroll")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onseeked")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("seeked")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("seeked")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onseeking")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("seeking")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("seeking")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onselect")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("select")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("select")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onshow")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("show")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("show")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onsort")}} {{experimental_inline}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("sort")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("sort")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onstalled")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("stalled")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("stalled")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onsubmit")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("submit")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("submit")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onsuspend")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("suspend")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("suspend")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.ontimeupdate")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("timeupdate")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("timeupdate")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onvolumechange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("volumechange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("volumechange")}} event is raised.</dd> <dt>{{domxref("GlobalEventHandlers.onwaiting")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("waiting")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 abecd02f74..f99474b970 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> 属性是一个 {{event("Event_handlers")}},当 {{event("auxclick")}} 事件发生时被调用,例如按下了输入设备上的非主按钮 (e.g. 鼠标中键)。</p> +<p><strong>onauxclick</strong> 属性是一个 {{domxref("EventHandler")}},当 {{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 bcfe77ec0b..9603f52914 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> 属性是一个{{event("Event_handlers")}},它是用来处理发送给{{HTMLElement("dialog")}}元素的{{event("cancel")}} 事件的。</p> +<p>{{domxref("GlobalEventHandlers")}} 的<code><strong>oncancel</strong></code> 属性是一个{{domxref("EventHandler")}},它是用来处理发送给{{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 d3a8b5c9b3..e50e97572c 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> 属性是{{event("Event_handlers")}} 处理 {{event("canplay")}} 事件。</p> +<p>{{domxref("GlobalEventHandlers")}}的<strong><code>oncanplay</code></strong> 属性是{{domxref("EventHandler")}} 处理 {{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 d60261dbfc..6e478aa535 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")}} 事件的事件处理器{{event("Event_handlers")}} .</p> +<p>全局事件处理器({{domxref("GlobalEventHandlers")}} )之一的 {{event("canplaythrough")}} 属性,是处理当前元素{{event("canplaythrough")}} 事件的事件处理器{{domxref("EventHandler")}} .</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 a32d18545a..f0e5322370 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")}} 事件的事件处理器({{event("Event_handlers")}})。</p> +<p>全局事件处理器({{domxref("GlobalEventHandlers")}})之一的 <code><strong>onclick</strong></code> 属性,是处理当前元素的 {{event("click")}} 事件的事件处理器({{domxref("EventHandler")}})。</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 95403d72a4..f7061e8243 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> 属性是一个 {{event("Event_handlers")}}, 用来处理发送给 {{HTMLElement("dialog")}} 元素的 {{event("close")}} 事件。</p> +<p>{{domxref("GlobalEventHandlers")}} mixin 的 <code><strong>onclose</strong></code> 属性是一个 {{domxref("EventHandler")}}, 用来处理发送给 {{HTMLElement("dialog")}} 元素的 {{event("close")}} 事件。</p> <p>当用户关闭一个 <code><dialog></code> 时,<code>close</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 8c79948caf..001cf49c01 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")}}事件的{{event("Event_handlers")}}。</div> +<div><strong><code>oncuechange</code></strong> 属性属于{{domxref("GlobalEventHandlers")}},是一个处理{{event("cuechange")}}事件的{{domxref("EventHandler")}}。</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 d296fd895e..fad4e30ac8 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")}} 事件的{{event("Event_handlers")}} 。</p> +<p>{{domxref("GlobalEventHandlers")}} 的<strong><code>ondurationchange</code></strong>属性是一个处理 {{event("durationchange")}} 事件的{{domxref("EventHandler")}} 。</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 931382b746..cd744371fa 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 {{event("Event_handlers")}} for processing {{event("ended")}} events.</p> +<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 <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 f7489cc18a..6118a8cc8e 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>属性是{{event("Event_handlers")}},它处理{{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>属性是{{domxref("EventHandler")}},它处理{{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 01c10578c7..c192d2ee5e 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>属性 是 {{event("Event_handlers")}} 处理{{event("invalid")}} 事件。</p> +<p>{{domxref("GlobalEventHandlers")}} 混合的<code><strong>oninvalid</strong></code>属性 是 {{domxref("EventHandler")}} 处理{{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 916cb103fc..a5f43df54a 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")}}的处理{{event("Event_handlers")}} 。</p> +<p>{{domxref("GlobalEventHandlers")}}的<strong><code>onloadeddata</code></strong> 属性是事件 {{event("loadeddata")}}的处理{{domxref("EventHandler")}} 。</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 0c357102be..7f2d977c24 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")}}事件的{{event("Event_handlers")}}。</p> +<p>{{domxref("GlobalEventHandlers")}} mixin的<strong><code>onloadedmetadata</code></strong>属性是处理{{event("loadedmetadata")}}事件的{{domxref("EventHandler")}}。</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 66d7935fda..0f9db1b169 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")}}事件时(资源加载进度停止时)的{{event("Event_handlers")}}。</div> +<div>{{domxref("GlobalEventHandlers")}}的<strong><code>onloadend</code></strong> 属性是用来 表示触发{{event("loadend")}}事件时(资源加载进度停止时)的{{domxref("EventHandler")}}。</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 5a359fcd6a..33bfbd734a 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 {{event("Event_handlers")}} 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 {{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> <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 b952076800..2f8763c94d 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> {{event("Event_handlers")}} 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> {{domxref("EventHandler")}} 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 ea58f0c02a..2a554abe9e 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> 属性绑定 {{event("Event_handlers")}} 后来处理{{event("mouseenter")}} 事件.</div> +<div>{{domxref("GlobalEventHandlers")}}的<strong><code>onmouseenter</code></strong> 属性绑定 {{domxref("EventHandler")}} 后来处理{{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 02fe0e4058..0daf4fed44 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")}})事件的事件管理器({{event("Event_handlers")}})。</p> +<p>{{domxref("GlobalEventHandlers")}} mixin 中的 <strong><code>onmouseleave</code></strong> 属性是用于处理鼠标移出({{event("mouseleave")}})事件的事件管理器({{domxref("EventHandler")}})。</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 2a40195914..ea8e8d654f 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 {{event("Event_handlers")}} for processing {{event("play")}} events.</p> +<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> <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 bdf07aae0b..25b77afc32 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 {{event("Event_handlers")}} for processing {{event("playing")}} events.</p> +<p>The <strong><code>onplaying</code></strong> property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} 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 43b947544c..7f43a32d5a 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> 属性包含 {{event("Event_handlers")}} ,当收到一个{{event("reset")}} 事件时触发</p> +<p>The <code><strong>GlobalEventHandlers.onreset</strong></code> 属性包含 {{domxref("EventHandler")}} ,当收到一个{{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 dda1f91037..1909ba0ef9 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")}} 的 {{event("Event_handlers")}}。</p> +<p>{{domxref("GlobalEventHandlers")}} 的 <code><strong>onsubmit</strong></code> 属性是一个处理 {{event("submit")}} 的 {{domxref("EventHandler")}}。</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 461ec2951f..e476a7a4a1 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")}} 事件的手柄{{event("Event_handlers")}}.</p> +<p>{{domxref("GlobalEventHandlers")}}混合 的 <code><strong>ontransitioncancel</strong></code> 属性 是处理 {{event("transitioncancel")}} 事件的手柄{{domxref("EventHandler")}}.</p> <div class="blockIndicator note"> -<p>domxref("GlobalEventHandlers") 与 event("Event_handlers"): dom修订版本的事件手柄。</p> +<p>domxref("GlobalEventHandlers") 与 domxref("EventHandler"): 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 88731e78e3..217a85c8da 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> 特性指向当前元素的滑轮滑动事件函数 {{event("Event_handlers")}}。</p> +<p>{{domxref("GlobalEventHandlers")}} 的 <code>onwheel</code> 特性指向当前元素的滑轮滑动事件函数 {{domxref("EventHandler")}}。</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 3d1f6f020e..a573d7165f 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 {{event("Event_handlers")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onbeforeprint")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onbeforeunload")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onhashchange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onmessage")}}</dt> - <dd>Is an {{event("Event_handlers")}} called whenever an object receives a {{event("message")}} event. </dd> + <dd>Is an {{domxref("EventHandler")}} called whenever an object receives a {{event("message")}} event. </dd> <dt>{{domxref("WindowEventHandlers.onmessageerror")}}</dt> - <dd>Is an {{event("Event_handlers")}} called whenever an object receives a {{event("messageerror")}} event.</dd> + <dd>Is an {{domxref("eventHandler")}} called whenever an object receives a {{event("messageerror")}} event.</dd> <dt>{{domxref("WindowEventHandlers.onoffline")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.ononline")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("online")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpagehide")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpageshow")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpopstate")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onrejectionhandled")}}</dt> - <dd>An {{event("Event_handlers")}} 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 {{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> <dt>{{domxref("WindowEventHandlers.onresize")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("resize")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("resize")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onstorage")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("storage")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("storage")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onunhandledrejection")}}</dt> - <dd>An {{event("Event_handlers")}} 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 {{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> <dt>{{domxref("WindowEventHandlers.onunload")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("unload")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 382fadd958..8589fdd95a 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 {{event("Event_handlers")}} for processing {{event("error")}} events.</p> +<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 <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 f099d690ff..4c9c9cb0e0 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> 属性是一种{{event("Event_handlers")}},当{{domxref("MediaDevices")}} 接口的{{event("devicechange")}}事件被触发时会被调用. 不论{{Glossary("user agent")}}媒体设备的设置是否可用, 或者网站或者应用发生变了都会触发。无论何时你都可以使用 {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}} 去更新可用设备列表.</span></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> <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 40c23ff109..9f233604bc 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 {{event("Event_handlers")}} 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 {{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> <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 57b616971f..049ea4a3f9 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")}}事件在这个对象上触发时调用的事件处理器[{{event("Event_handlers")}}],这时一个{{domxref("MediaStreamTrack")}}对象被添加到这个流。</dd> + <dd>这是{{event("addtrack")}}事件在这个对象上触发时调用的事件处理器[{{domxref("EventHandler")}}],这时一个{{domxref("MediaStreamTrack")}}对象被添加到这个流。</dd> <dt>{{domxref("MediaStream.onended")}}</dt> <dd>这是当流终止[{{event("ended (MediaStream)","ended")}}]时触发的事件。</dd> <dt>{{domxref("MediaStream.onremovetrack")}}</dt> - <dd>这是{{event("removetrack")}}事件在这个对象上触发事调用的事件处理器[{{event("Event_handlers")}}],这时一个对象从流上移除。</dd> + <dd>这是{{event("removetrack")}}事件在这个对象上触发事调用的事件处理器[{{domxref("EventHandler")}}],这时一个对象从流上移除。</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 52a2ed03ce..28db2b0b25 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")}}事件在这个对象上被触发时调用的事件处理器{{event("Event_handlers")}},这时一个新的{{domxref("MediaStreamTrack")}}对象被添加到轨道源上。</dd> + <dd>这是{{event("started")}}事件在这个对象上被触发时调用的事件处理器{{domxref("EventHandler")}},这时一个新的{{domxref("MediaStreamTrack")}}对象被添加到轨道源上。</dd> <dt>{{domxref("MediaStreamTrack.onmute")}}</dt> - <dd>这是{{event("mute")}}事件在这个对象被触发时调用的事件处理器{{event("Event_handlers")}},这时这个流被中断。</dd> + <dd>这是{{event("mute")}}事件在这个对象被触发时调用的事件处理器{{domxref("EventHandler")}},这时这个流被中断。</dd> <dt>{{domxref("MediaStreamTrack.onunmute")}}</dt> - <dd>这是{{event("unmute")}}事件在这个对象上被触发时调用的事件处理器{{event("Event_handlers")}},未实现。</dd> + <dd>这是{{event("unmute")}}事件在这个对象上被触发时调用的事件处理器{{domxref("EventHandler")}},未实现。</dd> <dt>{{domxref("MediaStreamTrack.onoverconstrained")}}</dt> <dd>这是{{event("overconstrained")}}事件在这个对象上被触发时调用的事件处理器{{event("overconstrained")}},未实现。</dd> <dt>{{domxref("MediaStreamTrack.oneended")}}</dt> - <dd>这是{{event("ended_(MediaStream)", "ended")}}事件在这个对象被触发时调用的事件处理器{{event("Event_handlers")}},未实现。</dd> + <dd>这是{{event("ended_(MediaStream)", "ended")}}事件在这个对象被触发时调用的事件处理器{{domxref("EventHandler")}},未实现。</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 d231206a89..4f7a869dd2 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()")}} 被使用之后,{{event("Event_handlers")}} 将会被调用,{{event("complete")}} 事件类型为 {{domxref("OfflineAudioCompletionEvent")}})被触发。</dd> + <dd>当进程完成时,基于事件版本的{{domxref("OfflineAudioContext.startRendering()")}} 被使用之后,{{domxref("EventHandler")}} 将会被调用,{{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 65d11772bd..e6bcbb1ec1 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")}} 事件触发时调用的{{event("Event_handlers")}} 。</dd> + <dd>一个当{{event("resourcetimingbufferfull")}} 事件触发时调用的{{domxref("EventHandler")}} 。</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 eae0184677..418f180f79 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>是一个{{event("Event_handlers")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。</p> +<p><code><strong>RTCPeerConnection.ondatachannel </strong>属性</code>是一个{{domxref("EventHandler")}},当这个{{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 568faa2263..6389f53f6a 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> (是一个事件触发器 {{event("Event_handlers")}}) 能够让函数在事件{{event("icecandidate")}}发生在实例 {{domxref("RTCPeerConnection")}} 上时被调用。 <strong>只要本地代理{{Glossary("ICE")}} 需要通过信令服务器传递信息给其他对等端时就会触发</strong>。</span> 这让本地代理与其他对等体相协商而浏览器本身在使用时无需知道任何详细的有关信令技术的细节,只需要简单地应用这种方法就可使用您选择的任何消息传递技术将ICE候选发送到远程对等方。</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> <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 c62e4ffac9..b92a83228c 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> 属性是一个 {{event("Event_handlers")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。</p> +<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> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/scriptprocessornode/index.html b/files/zh-cn/web/api/scriptprocessornode/index.html index cbf56b780b..d53e09691e 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 {{event("Event_handlers")}} to be called.</dd> + <dd>Represents the {{domxref("EventHandler")}} 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 491b7edb0b..27bcce6cf2 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> 属性是一个当收到来自服务器的消息时被调用的 {{event("Event_handlers")}}。它由一个{{domxref("MessageEvent")}}调用。</p> +<p><code><strong>WebSocket.onmessage</strong></code> 属性是一个当收到来自服务器的消息时被调用的 {{domxref("EventHandler")}}。它由一个{{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 563d391d35..d1e449cdc8 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 {{event("Event_handlers")}} representing the code to be called when the {{event("message")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 27d206782b..72a8a78eb9 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 {{event("Event_handlers")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onbeforeprint")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onbeforeunload")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onhashchange")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onmessage")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("message")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onoffline")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.ononline")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("online")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpagehide")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpageshow")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onpopstate")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.</dd> <dt>{{domxref("WindowEventHandlers.onstorage")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("storage")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} representing the code to be called when the {{event("unload")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 3cbbe02468..cdf54dcead 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")}}事件的{{event("Event_handlers")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</p> +<p>{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{domxref("EventHandler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</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 8275fbd4ab..834ca04cf0 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")}}事件的{{event("Event_handlers")}}。在打开打印对话窗口之前会触发这些事件。</div> +<div>{{domxref("WindowEventHandlers")}}的<code><strong>onbeforeprint</strong></code>属性是用于处理当前窗口的{{event("beforeprint")}}事件的{{domxref("EventHandler")}}。在打开打印对话窗口之前会触发这些事件。</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 326ea04852..bdbcdc3f2f 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>{{event("Event_handlers")}} <strong>.</strong></p> +<p>{{domxref("WindowEventHandlers")}}的<code><strong>onmessage</strong></code><strong> 属性是当对象接收到</strong>{{event("message")}} <strong>事件时被调用的</strong>{{domxref("EventHandler")}} <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 580592317a..65b13fa59a 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> 是 {{event("Event_handlers")}} 处理 {{Event("unload")}} 事件的方法。该事件在关闭窗口资源和内容的时候触发。页面资源的清除工作会在 <code>unload</code> 事件之后进行。</p> +<p>{{domxref("WindowEventHandlers")}} 的混入特性 <strong><code>onunload</code></strong> 是 {{domxref("EventHandler")}} 处理 {{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 d374ebbe48..915aceb681 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")}} 类型的事件发生时,对应的{{event("Event_handlers")}} 代码被调用。</dd> + <dd>当{{event("messageerror")}} 类型的事件发生时,对应的{{domxref("EventHandler")}} 代码被调用。</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 138e1dd41f..9fb062c24f 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>属性表示一个{{event("Event_handlers")}}事件处理函数,当{{event("message")}} 事件发生时,该函数被调用。这些事件所属{{domxref("MessageEvent")}}类型,且当Worker子线程返回一条消息时被调用(比如:从{{domxref("DedicatedWorkerGlobalScope.postMessage")}}函数发出的信息)</p> +<p>{{domxref("Worker")}} 接口的<strong><code>onmessage</code></strong>属性表示一个{{domxref("EventHandler")}}事件处理函数,当{{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 23b754735f..8d9fef8dd7 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 {{event("Event_handlers")}} representing the code to be called when the {{event("error")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("error")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.onoffline")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.ononline")}}</dt> - <dd>Is an {{event("Event_handlers")}} representing the code to be called when the {{event("online")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.</dd> <dt>{{domxref("WorkerGlobalScope.onlanguagechange")}}</dt> - <dd>An {{event("Event_handlers")}} fired at the global/worker scope object when the user's preferred languages change.</dd> + <dd>An {{domxref("EventHandler")}} 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 {{event("Event_handlers")}} representing the code to be called when the {{event("close")}} event is raised.</dd> + <dd>Is an {{domxref("EventHandler")}} 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 356136395d..4498cb514e 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> 属性发生变化时,调用的 {{event("Event_handlers")}}。</dd> + <dd>当 <code>readyState</code> 属性发生变化时,调用的 {{domxref("EventHandler")}}。</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>当请求超时调用的 {{event("Event_handlers")}}。{{ gecko_minversion_inline(" 12.0 ")}}</dd> + <dd>当请求超时调用的 {{domxref("EventHandler")}}。{{ gecko_minversion_inline(" 12.0 ")}}</dd> <dt>{{domxref("XMLHttpRequest.upload")}} {{readonlyinline}}</dt> <dd>{{domxref("XMLHttpRequestUpload")}},代表上传进度。</dd> <dt>{{domxref("XMLHttpRequest.withCredentials")}}</dt> |