From 05a7219ba9605649cb6daa281e26209eaa73adf0 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Fri, 28 May 2021 12:36:36 -0700 Subject: fix MacroWrongXRefError flaws for some domxref calls (#1018) --- .../zh-cn/web/api/audiobuffersourcenode/index.html | 2 +- files/zh-cn/web/api/broadcastchannel/index.html | 4 +- .../web/api/dedicatedworkerglobalscope/index.html | 4 +- files/zh-cn/web/api/document/index.html | 8 +- files/zh-cn/web/api/eventsource/index.html | 12 +- files/zh-cn/web/api/eventsource/onerror/index.html | 2 +- files/zh-cn/web/api/eventsource/onopen/index.html | 2 +- files/zh-cn/web/api/fetchevent/index.html | 2 +- files/zh-cn/web/api/globaleventhandlers/index.html | 146 ++++++++++----------- .../api/globaleventhandlers/onauxclick/index.html | 2 +- .../api/globaleventhandlers/oncancel/index.html | 2 +- .../api/globaleventhandlers/oncanplay/index.html | 2 +- .../oncanplaythrough/index.html | 2 +- .../web/api/globaleventhandlers/onclick/index.html | 2 +- .../web/api/globaleventhandlers/onclose/index.html | 2 +- .../globaleventhandlers/oncontextmenu/index.html | 2 +- .../api/globaleventhandlers/oncuechange/index.html | 2 +- .../ondurationchange/index.html | 2 +- .../web/api/globaleventhandlers/onended/index.html | 2 +- .../web/api/globaleventhandlers/oninput/index.html | 2 +- .../api/globaleventhandlers/oninvalid/index.html | 2 +- .../globaleventhandlers/onloadeddata/index.html | 2 +- .../onloadedmetadata/index.html | 2 +- .../api/globaleventhandlers/onloadend/index.html | 2 +- .../api/globaleventhandlers/onloadstart/index.html | 2 +- .../onlostpointercapture/index.html | 2 +- .../globaleventhandlers/onmouseenter/index.html | 2 +- .../globaleventhandlers/onmouseleave/index.html | 2 +- .../web/api/globaleventhandlers/onplay/index.html | 2 +- .../api/globaleventhandlers/onplaying/index.html | 2 +- .../web/api/globaleventhandlers/onreset/index.html | 2 +- .../api/globaleventhandlers/onsubmit/index.html | 2 +- .../ontransitioncancel/index.html | 4 +- .../web/api/globaleventhandlers/onwheel/index.html | 2 +- files/zh-cn/web/api/htmlbodyelement/index.html | 34 ++--- .../web/api/htmlmediaelement/onerror/index.html | 2 +- .../web/api/mediadevices/ondevicechange/index.html | 2 +- files/zh-cn/web/api/mediarecorder/index.html | 2 +- files/zh-cn/web/api/mediastream/index.html | 4 +- files/zh-cn/web/api/mediastreamtrack/index.html | 8 +- files/zh-cn/web/api/offlineaudiocontext/index.html | 2 +- .../onresourcetimingbufferfull/index.html | 2 +- .../api/rtcpeerconnection/ondatachannel/index.html | 2 +- .../rtcpeerconnection/onicecandidate/index.html | 2 +- .../web/api/rtcpeerconnection/ontrack/index.html | 2 +- files/zh-cn/web/api/scriptprocessornode/index.html | 2 +- files/zh-cn/web/api/websocket/onmessage/index.html | 2 +- files/zh-cn/web/api/window/index.html | 4 +- files/zh-cn/web/api/windoweventhandlers/index.html | 26 ++-- .../windoweventhandlers/onafterprint/index.html | 2 +- .../windoweventhandlers/onbeforeprint/index.html | 2 +- .../api/windoweventhandlers/onmessage/index.html | 2 +- .../api/windoweventhandlers/onunload/index.html | 2 +- files/zh-cn/web/api/worker/index.html | 2 +- files/zh-cn/web/api/worker/onmessage/index.html | 2 +- files/zh-cn/web/api/workerglobalscope/index.html | 10 +- files/zh-cn/web/api/xmlhttprequest/index.html | 4 +- 57 files changed, 178 insertions(+), 178 deletions(-) (limited to 'files/zh-cn/web') 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
{{domxref("AudioBufferSourceNode.onended")}}
-
是一个 {{domxref("EventHandler")}} 类型,包含了与 {{event("ended_(Web_Audio)", "ended")}} 相关联的结束事件。
+
是一个 {{event("Event_handlers", "event handler")}} 类型,包含了与 {{event("ended_(Web_Audio)", "ended")}} 相关联的结束事件。

方法

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

事件处理程序

{{domxref("BroadcastChannel.onmessage")}}
-
{{domxref("EventHandler")}} ,用于定义当该对象上触发了 {{event("message")}} 事件时要执行的函数。
+
{{event("Event_handlers", "event handler")}} ,用于定义当该对象上触发了 {{event("message")}} 事件时要执行的函数。
{{domxref("BroadcastChannel.onmessageerror")}}
-
{{domxref("EventHandler")}} ,用于定义当该对象上触发了类型为 {{domxref("MessageError")}} 的 {{domxref("MessageEvent")}} 事件时要执行的函数。当接收到一条无法反序列化的消息时会触发此事件。
+
{{event("Event_handlers", "event handler")}} ,用于定义当该对象上触发了类型为 {{domxref("MessageError")}} 的 {{domxref("MessageEvent")}} 事件时要执行的函数。当接收到一条无法反序列化的消息时会触发此事件。

方法

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
{{domxref("DedicatedWorkerGlobalScope.onmessage")}}
-
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.)
+
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.)
{{domxref("DedicatedWorkerGlobalScope.onmessageerror")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("messageerror")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("messageerror")}} event is raised.

方法

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
{{DOMxRef("Document.oncut")}} {{Non-standard_Inline}}
Represents the event handling code for the {{event("cut")}} event.
{{DOMxRef("Document.onfullscreenchange")}}
-
Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.
{{DOMxRef("Document.onfullscreenerror")}}
-
Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.
{{DOMxRef("Document.onpaste")}} {{Non-standard_Inline}}
Represents the event handling code for the {{event("paste")}} event.
{{DOMxRef("Document.onreadystatechange")}}
Represents the event handling code for the {{event("readystatechange")}} event.
{{DOMxRef("Document.onselectionchange")}} {{Experimental_Inline}}
-
Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.
{{DOMxRef("Document.onvisibilitychange")}}
-
Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.

The Document interface is extended with the {{DOMxRef("GlobalEventHandlers")}} interface:

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
{{domxref("EventSource.onerror")}}
-
是一个 {{domxref("EventHandler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。
+
是一个 {{event("Event_handlers", "event handler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。
{{domxref("EventSource.onmessage")}}
-
是一个 {{domxref("EventHandler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。
+
是一个 {{event("Event_handlers", "event handler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。
{{domxref("EventSource.onopen")}}
-
是一个 {{domxref("EventHandler")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。
+
是一个 {{event("Event_handlers", "event handler")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。
{{domxref("EventSource.readyState")}} {{readonlyinline}}
一个 unsigned short 值,代表连接状态。可能值是 CONNECTING (0), OPEN (1), 或者 CLOSED (2)。
{{domxref("EventSource.url")}} {{readonlyinline}}
@@ -44,11 +44,11 @@ original_slug: Server-sent_events/EventSource
{{domxref("EventSource.onerror")}}
-
Is an {{domxref("EventHandler")}} called when an error occurs and the {{domxref("EventSource/error_event", "error")}} event is dispatched on an EventSource object.
+
Is an {{event("Event_handlers", "event handler")}} called when an error occurs and the {{domxref("EventSource/error_event", "error")}} event is dispatched on an EventSource object.
{{domxref("EventSource.onmessage")}}
-
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.
+
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.
{{domxref("EventSource.onopen")}}
-
Is an {{domxref("EventHandler")}} called when an {{domxref("EventSource/open_event", "open")}} event is received, that is when the connection was just opened.
+
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.

方法

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
 
-

{{domxref("EventSource")}} 的属性 onerror 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{domxref("EventHandler")}})

+

{{domxref("EventSource")}} 的属性 onerror 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{event("Event_handlers", "event handler")}})

语法

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 ---
{{APIRef('WebSockets API')}}
-

{{domxref("EventSource")}}接口的 onopen 属性是一个 {{domxref("EventHandler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。

+

{{domxref("EventSource")}}接口的 onopen 属性是一个 {{event("Event_handlers", "event handler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。

语法

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
Resolves by returning a {{domxref("Response")}} or a network error  to Fetch.
{{domxref("ExtendableEvent.waitUntil", "ExtendableEvent.waitUntil()")}}
-

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.

+

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.

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
{{domxref("GlobalEventHandlers.onabort")}}
-
这是一个事件句柄 {{domxref("EventHandler")}} ,当停止{{event("abort")}} 事件触发时会被调用。
+
这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当停止{{event("abort")}} 事件触发时会被调用。
{{domxref("GlobalEventHandlers.onanimationcancel")}} {{Non-standard_inline}}
-
这是一个事件句柄 {{domxref("EventHandler")}} ,当 CSS 动画取消{{event("animationcancel")}}事件触发时被调用,这表示某个正在执行的CSS动画被取消了。
+
这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当 CSS 动画取消{{event("animationcancel")}}事件触发时被调用,这表示某个正在执行的CSS动画被取消了。
{{domxref("GlobalEventHandlers.onanimationend")}} {{Non-standard_inline}}
-
这是一个事件句柄 {{domxref("EventHandler")}} ,当 CSS 动画播放完成{{event("animationend")}} 事件触发时被调用,这表示某个CSS动画已经播放完成了。
+
这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当 CSS 动画播放完成{{event("animationend")}} 事件触发时被调用,这表示某个CSS动画已经播放完成了。
{{domxref("GlobalEventHandlers.onblur")}}
-
这是一个事件句柄 {{domxref("EventHandler")}} ,当失去焦点 {{event("blur")}} 事件触发时会被调用。
+
这是一个事件句柄 {{event("Event_handlers", "event handler")}} ,当失去焦点 {{event("blur")}} 事件触发时会被调用。
{{domxref("GlobalEventHandlers.onerror")}}
-
这是一个错误发生时的事件句柄 {{domxref("EventHandler")}} ,当发生错误{{event("error")}} 事件时会被调用。
+
这是一个错误发生时的事件句柄 {{event("Event_handlers", "event handler")}} ,当发生错误{{event("error")}} 事件时会被调用。
{{domxref("GlobalEventHandlers.onfocus")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("focus")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("focus")}} event is raised.
{{domxref("GlobalEventHandlers.oncancel")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("cancel")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("cancel")}} event is raised.
{{domxref("GlobalEventHandlers.oncanplay")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("canplay")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("canplay")}} event is raised.
{{domxref("GlobalEventHandlers.oncanplaythrough")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("canplaythrough")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("canplaythrough")}} event is raised.
{{domxref("GlobalEventHandlers.onchange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("change")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("change")}} event is raised.
{{domxref("GlobalEventHandlers.onclick")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("click")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("click")}} event is raised.
{{domxref("GlobalEventHandlers.onclose")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("close")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("close")}} event is raised.
{{domxref("GlobalEventHandlers.oncontextmenu")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("contextmenu")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("contextmenu")}} event is raised.
{{domxref("GlobalEventHandlers.oncuechange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("cuechange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("cuechange")}} event is raised.
{{domxref("GlobalEventHandlers.ondblclick")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dblclick")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dblclick")}} event is raised.
{{domxref("GlobalEventHandlers.ondrag")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("drag")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("drag")}} event is raised.
{{domxref("GlobalEventHandlers.ondragend")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragend")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragend")}} event is raised.
{{domxref("GlobalEventHandlers.ondragenter")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragenter")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragenter")}} event is raised.
{{domxref("GlobalEventHandlers.ondragexit")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragexit")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragexit")}} event is raised.
{{domxref("GlobalEventHandlers.ondragleave")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragleave")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragleave")}} event is raised.
{{domxref("GlobalEventHandlers.ondragover")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragover")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragover")}} event is raised.
{{domxref("GlobalEventHandlers.ondragstart")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("dragstart")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("dragstart")}} event is raised.
{{domxref("GlobalEventHandlers.ondrop")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("drop")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("drop")}} event is raised.
{{domxref("GlobalEventHandlers.ondurationchange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("durationchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("durationchange")}} event is raised.
{{domxref("GlobalEventHandlers.onemptied")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("emptied")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("emptied")}} event is raised.
{{domxref("GlobalEventHandlers.onended")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("ended")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("ended")}} event is raised.
{{domxref("GlobalEventHandlers.oninput")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("input")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("input")}} event is raised.
{{domxref("GlobalEventHandlers.oninvalid")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("invalid")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("invalid")}} event is raised.
{{domxref("GlobalEventHandlers.onkeydown")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keydown")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("keydown")}} event is raised.
{{domxref("GlobalEventHandlers.onkeypress")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keypress")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("keypress")}} event is raised.
{{domxref("GlobalEventHandlers.onkeyup")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("keyup")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("keyup")}} event is raised.
{{domxref("GlobalEventHandlers.onload")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("load")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("load")}} event is raised.
{{domxref("GlobalEventHandlers.onloadeddata")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadeddata")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadeddata")}} event is raised.
{{domxref("GlobalEventHandlers.onloadedmetadata")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadedmetadata")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadedmetadata")}} event is raised.
{{domxref("GlobalEventHandlers.onloadstart")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("loadstart")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("loadstart")}} event is raised.
{{domxref("GlobalEventHandlers.onmousedown")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousedown")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mousedown")}} event is raised.
{{domxref("GlobalEventHandlers.onmouseenter")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseenter")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseenter")}} event is raised.
{{domxref("GlobalEventHandlers.onmouseleave")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseleave")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseleave")}} event is raised.
{{domxref("GlobalEventHandlers.onmousemove")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousemove")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mousemove")}} event is raised.
{{domxref("GlobalEventHandlers.onmouseout")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseout")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseout")}} event is raised.
{{domxref("GlobalEventHandlers.onmouseover")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseover")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseover")}} event is raised.
{{domxref("GlobalEventHandlers.onmouseup")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mouseup")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mouseup")}} event is raised.
{{domxref("GlobalEventHandlers.onmousewheel")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("mousewheel")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("mousewheel")}} event is raised.
{{domxref("GlobalEventHandler.onmozfullscreenchange")}} {{non-standard_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.
{{domxref("GlobalEventHandler.onmozfullscreenerror")}} {{non-standard_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.
{{domxref("GlobalEventHandlers.onpause")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pause")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pause")}} event is raised.
{{domxref("GlobalEventHandlers.onplay")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("play")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("play")}} event is raised.
{{domxref("GlobalEventHandlers.onplaying")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("playing")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("playing")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerdown")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerdown")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerdown")}} event is raised.
{{domxref("GlobalEventHandlers.onpointermove")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointermove")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointermove")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerup")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerup")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerup")}} event is raised.
{{domxref("GlobalEventHandlers.onpointercancel")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointercancel")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointercancel")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerover")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerover")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerover")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerout")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerout")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerout")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerenter")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerevent")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerevent")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerleave")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerleave")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerleave")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerlockchange")}} {{experimental_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerlockchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerlockchange")}} event is raised.
{{domxref("GlobalEventHandlers.onpointerlockerror")}} {{experimental_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pointerlockerror")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pointerlockerror")}} event is raised.
{{domxref("GlobalEventHandlers.onprogress")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("progress")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("progress")}} event is raised.
{{domxref("GlobalEventHandlers.onratechange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("ratechange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("ratechange")}} event is raised.
{{domxref("GlobalEventHandlers.onreset")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("reset")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("reset")}} event is raised.
{{domxref("GlobalEventHandlers.onscroll")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("scroll")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("scroll")}} event is raised.
{{domxref("GlobalEventHandlers.onseeked")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("seeked")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("seeked")}} event is raised.
{{domxref("GlobalEventHandlers.onseeking")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("seeking")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("seeking")}} event is raised.
{{domxref("GlobalEventHandlers.onselect")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("select")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("select")}} event is raised.
{{domxref("GlobalEventHandlers.onshow")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("show")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("show")}} event is raised.
{{domxref("GlobalEventHandlers.onsort")}} {{experimental_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("sort")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("sort")}} event is raised.
{{domxref("GlobalEventHandlers.onstalled")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("stalled")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("stalled")}} event is raised.
{{domxref("GlobalEventHandlers.onsubmit")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("submit")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("submit")}} event is raised.
{{domxref("GlobalEventHandlers.onsuspend")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("suspend")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("suspend")}} event is raised.
{{domxref("GlobalEventHandlers.ontimeupdate")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("timeupdate")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("timeupdate")}} event is raised.
{{domxref("GlobalEventHandlers.onvolumechange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("volumechange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("volumechange")}} event is raised.
{{domxref("GlobalEventHandlers.onwaiting")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("waiting")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("waiting")}} event is raised.

Methods

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
 
-

onauxclick 属性是一个 {{domxref("EventHandler")}},当 {{event("auxclick")}} 事件发生时被调用,例如按下了输入设备上的非主按钮 (e.g. 鼠标中键)。

+

onauxclick 属性是一个 {{event("Event_handlers", "event handler")}},当 {{event("auxclick")}} 事件发生时被调用,例如按下了输入设备上的非主按钮 (e.g. 鼠标中键)。

实现该属性的一个目标是,提高浏览器与按钮行为之间的兼容性 - 事件行为正在更新,以便 {{Event("click")}} 只触发主按钮点击(例如,鼠标左键)。然后开发人员可以使用 {{Event("auxclick")}} 来为非主按钮点击提供明确的行为。在此之前,{{Event("click")}} 通常会针对所有输入设备按钮点击,浏览器行为有些不一致。

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 ---
{{ApiRef("HTML DOM")}}
-

{{domxref("GlobalEventHandlers")}} 的oncancel 属性是一个{{domxref("EventHandler")}},它是用来处理发送给{{HTMLElement("dialog")}}元素的{{event("cancel")}} 事件的。

+

{{domxref("GlobalEventHandlers")}} 的oncancel 属性是一个{{event("Event_handlers", "event handler")}},它是用来处理发送给{{HTMLElement("dialog")}}元素的{{event("cancel")}} 事件的。

当用户需要离开一个<dialog>元素的时候就会触发 cancel 事件. 这个事件处理器会防止事件向上传递,因此任何父处理器都不会接受到该事件。

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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}}的oncanplay 属性是{{domxref("EventHandler")}} 处理 {{event("canplay")}} 事件。

+

{{domxref("GlobalEventHandlers")}}的oncanplay 属性是{{event("Event_handlers", "event handler")}} 处理 {{event("canplay")}} 事件。

当用户代理能够播放媒体时canplay 事件被触发 , 但是预估没有加载全部的数据以支持媒体播放完毕。

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 ---
{{ ApiRef("HTML DOM") }}
-

全局事件处理器({{domxref("GlobalEventHandlers")}} )之一的 {{event("canplaythrough")}} 属性,是处理当前元素{{event("canplaythrough")}} 事件的事件处理器{{domxref("EventHandler")}} .

+

全局事件处理器({{domxref("GlobalEventHandlers")}} )之一的 {{event("canplaythrough")}} 属性,是处理当前元素{{event("canplaythrough")}} 事件的事件处理器{{event("Event_handlers", "event handler")}} .

当用户代理可以播放媒体资源并且可以播放至其结束而不必进一步缓冲内容时,触发canplaythrough事件。

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 ---
{{ ApiRef("HTML DOM") }}
-

全局事件处理器({{domxref("GlobalEventHandlers")}})之一的 onclick 属性,是处理当前元素的 {{event("click")}} 事件的事件处理器({{domxref("EventHandler")}})。

+

全局事件处理器({{domxref("GlobalEventHandlers")}})之一的 onclick 属性,是处理当前元素的 {{event("click")}} 事件的事件处理器({{event("Event_handlers", "event handler")}})。

当用户点击一个元素时,会触发 click 事件。在每次点击的整个过程中,click 事件的运行顺序在 {{event("mousedown")}} 和 {{event("mouseup")}} 事件之后。

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 ---
{{ApiRef("HTML DOM")}} {{SeeCompatTable}}
-

{{domxref("GlobalEventHandlers")}} mixin 的 onclose 属性是一个 {{domxref("EventHandler")}}, 用来处理发送给 {{HTMLElement("dialog")}} 元素的 {{event("close")}} 事件。

+

{{domxref("GlobalEventHandlers")}} mixin 的 onclose 属性是一个 {{event("Event_handlers", "event handler")}}, 用来处理发送给 {{HTMLElement("dialog")}} 元素的 {{event("close")}} 事件。

当用户关闭一个 <dialog> 时,close 事件将被触发。

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: ---
{{ ApiRef("HTML DOM") }}
-

oncontextmenu 是用来设置或获取全局事件({{domxref("GlobalEventHandlers")}})中 上下文菜单事件({{event("contextmenu")}}) 的处理函数({{domxref("EventHandler")}})。

+

oncontextmenu 是用来设置或获取全局事件({{domxref("GlobalEventHandlers")}})中 上下文菜单事件({{event("contextmenu")}}) 的处理函数({{event("Event_handlers", "event handler")}})。

当在窗口上单击鼠标右键时,通常会触发 contextmenu 事件。 除非阻止默认行为,否则浏览器上下文菜单将被激活。

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 ---
{{ ApiRef("HTML DOM") }}
-
oncuechange 属性属于{{domxref("GlobalEventHandlers")}},是一个处理{{event("cuechange")}}事件的{{domxref("EventHandler")}}。
+
oncuechange 属性属于{{domxref("GlobalEventHandlers")}},是一个处理{{event("cuechange")}}事件的{{event("Event_handlers", "event handler")}}。
当{{domxref("TextTrack")}}更改了当前显示的提示时,cuechange 事件将会触发。
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/时长改变 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}} 的ondurationchange属性是一个处理 {{event("durationchange")}} 事件的{{domxref("EventHandler")}} 。

+

{{domxref("GlobalEventHandlers")}} 的ondurationchange属性是一个处理 {{event("durationchange")}} 事件的{{event("Event_handlers", "event handler")}} 。

durationchange事件会在duration发生变更时触发。

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 ---
{{ ApiRef("HTML DOM") }}
-

The onended property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} for processing {{event("ended")}} events.

+

The onended property of the {{domxref("GlobalEventHandlers")}} mixin is the {{event("Event_handlers", "event handler")}} for processing {{event("ended")}} events.

The ended event is fired when playback has stopped because the end of the media was reached.

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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}}mixin的oninput属性是{{domxref("EventHandler")}},它处理{{HTMLElement("input")}},{{HTMLElement("select")}}和 {{HTMLElement("textarea")}} 元素上的 {{event("input")}} 事件。 它还会在{{domxref("HTMLElement.contentEditable", "contenteditable")}} 或 {{domxref("Document.designMode", "designMode")}}打开的元素上处理这些事件。

+

{{domxref("GlobalEventHandlers")}}mixin的oninput属性是{{event("Event_handlers", "event handler")}},它处理{{HTMLElement("input")}},{{HTMLElement("select")}}和 {{HTMLElement("textarea")}} 元素上的 {{event("input")}} 事件。 它还会在{{domxref("HTMLElement.contentEditable", "contenteditable")}} 或 {{domxref("Document.designMode", "designMode")}}打开的元素上处理这些事件。

注意:与oninput不同的是, {{domxref("GlobalEventHandlers.onchange", "onchange")}} 事件处理程序不一定会针对元素值的每次更改而调用。

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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}} 混合的oninvalid属性 是 {{domxref("EventHandler")}} 处理{{event("invalid")}} 事件。

+

{{domxref("GlobalEventHandlers")}} 混合的oninvalid属性 是 {{event("Event_handlers", "event handler")}} 处理{{event("invalid")}} 事件。

invalid 事件被触发当一个从属元素被勾选checked 并且与之前的选中方式不同。 有效的从属元素在表单之前被选中, 或者在 checkValidity() 方法之后它自己的表单被调用。

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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}}的onloadeddata 属性是事件 {{event("loadeddata")}}的处理{{domxref("EventHandler")}} 。

+

{{domxref("GlobalEventHandlers")}}的onloadeddata 属性是事件 {{event("loadeddata")}}的处理{{event("Event_handlers", "event handler")}} 。

loadeddata 事件当媒体资源的第一帧加载完成时被触发。

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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}} mixin的onloadedmetadata属性是处理{{event("loadedmetadata")}}事件的{{domxref("EventHandler")}}。

+

{{domxref("GlobalEventHandlers")}} mixin的onloadedmetadata属性是处理{{event("loadedmetadata")}}事件的{{event("Event_handlers", "event handler")}}。

loadedmetadata事件在元数据(metadata)被加载完成后触发。

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 ---
{{ApiRef}}
-
{{domxref("GlobalEventHandlers")}}的onloadend 属性是用来 表示触发{{event("loadend")}}事件时(资源加载进度停止时)的{{domxref("EventHandler")}}。
+
{{domxref("GlobalEventHandlers")}}的onloadend 属性是用来 表示触发{{event("loadend")}}事件时(资源加载进度停止时)的{{event("Event_handlers", "event handler")}}。

语法

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 ---
{{ApiRef}}
-

The onloadstart 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.)

+

The onloadstart 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.)

Syntax

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

{{ApiRef("HTML DOM")}}

-

The onlostpointercapture {{domxref("EventHandler")}} property of the {{domxref("GlobalEventHandlers")}} interface returns the event handler (function) for the {{event("lostpointercapture")}} event type.

+

The onlostpointercapture {{event("Event_handlers", "event handler")}} property of the {{domxref("GlobalEventHandlers")}} interface returns the event handler (function) for the {{event("lostpointercapture")}} event type.

语法

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 ---
{{ ApiRef("HTML DOM") }}
-
{{domxref("GlobalEventHandlers")}}的onmouseenter 属性绑定 {{domxref("EventHandler")}} 后来处理{{event("mouseenter")}} 事件.
+
{{domxref("GlobalEventHandlers")}}的onmouseenter 属性绑定 {{event("Event_handlers", "event handler")}} 后来处理{{event("mouseenter")}} 事件.
 
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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}} mixin 中的 onmouseleave 属性是用于处理鼠标移出({{event("mouseleave")}})事件的事件管理器({{domxref("EventHandler")}})。

+

{{domxref("GlobalEventHandlers")}} mixin 中的 onmouseleave 属性是用于处理鼠标移出({{event("mouseleave")}})事件的事件管理器({{event("Event_handlers", "event handler")}})。

mouseleave事件在定点设备(通常来说指的是鼠标) 移出某个元素时触发。

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 ---
{{ ApiRef("HTML DOM") }}
-

The onplay property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} for processing {{event("play")}} events.

+

The onplay property of the {{domxref("GlobalEventHandlers")}} mixin is the {{event("Event_handlers", "event handler")}} for processing {{event("play")}} events.

语法

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 ---
{{ApiRef("HTML DOM")}}
-

The onplaying property of the {{domxref("GlobalEventHandlers")}} mixin is the {{domxref("EventHandler")}} for processing {{event("playing")}} events.

+

The onplaying property of the {{domxref("GlobalEventHandlers")}} mixin is the {{event("Event_handlers", "event handler")}} for processing {{event("playing")}} events.

playing 事件将会在媒体做好播放准备后(因暂停或网络延迟而导致媒体数据缺失)触发。

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

{{ ApiRef() }}

-

The GlobalEventHandlers.onreset 属性包含 {{domxref("EventHandler")}} ,当收到一个{{event("reset")}} 事件时触发

+

The GlobalEventHandlers.onreset 属性包含 {{event("Event_handlers", "event handler")}} ,当收到一个{{event("reset")}} 事件时触发

语法

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 ---
{{ ApiRef("HTML DOM") }}
-

{{domxref("GlobalEventHandlers")}} 的 onsubmit 属性是一个处理 {{event("submit")}} 的 {{domxref("EventHandler")}}。

+

{{domxref("GlobalEventHandlers")}} 的 onsubmit 属性是一个处理 {{event("submit")}} 的 {{event("Event_handlers", "event handler")}}。

submit 事件会在用户点击提交按钮(<input type="submit"/> 元素)提交表单时触发。

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 ---
{{APIRef("CSS3 Transitions")}}
-

{{domxref("GlobalEventHandlers")}}混合 的 ontransitioncancel  属性 是处理 {{event("transitioncancel")}} 事件的手柄{{domxref("EventHandler")}}.

+

{{domxref("GlobalEventHandlers")}}混合 的 ontransitioncancel  属性 是处理 {{event("transitioncancel")}} 事件的手柄{{event("Event_handlers", "event handler")}}.

-

domxref("GlobalEventHandlers") 与 domxref("EventHandler"): dom修订版本的事件手柄。

+

domxref("GlobalEventHandlers") 与 event("Event_handlers", "event handler"): dom修订版本的事件手柄。

event("transitioncancel"):transitioncancel事件

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

归纳说明

-

{{domxref("GlobalEventHandlers")}} 的 onwheel 特性指向当前元素的滑轮滑动事件函数 {{domxref("EventHandler")}}。

+

{{domxref("GlobalEventHandlers")}} 的 onwheel 特性指向当前元素的滑轮滑动事件函数 {{event("Event_handlers", "event handler")}}。

注意:不要混淆 onwheel 和 {{domxref("GlobalEventHandlers.onscroll", "onscroll")}}:onwheel 通常用于处理滑轮的滚动事件,而 onscroll 用于处理某个对象内容的滚动。

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
{{domxref("WindowEventHandlers.onafterprint")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("afterprint")}} event is raised.
{{domxref("WindowEventHandlers.onbeforeprint")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.
{{domxref("WindowEventHandlers.onbeforeunload")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.
{{domxref("WindowEventHandlers.onhashchange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("hashchange")}} event is raised.
{{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("languagechange")}} event is raised.
{{domxref("WindowEventHandlers.onmessage")}}
-
Is an {{domxref("EventHandler")}} called whenever an object receives a {{event("message")}} event.  
+
Is an {{event("Event_handlers", "event handler")}} called whenever an object receives a {{event("message")}} event.  
{{domxref("WindowEventHandlers.onmessageerror")}}
-
Is an {{domxref("eventHandler")}} called whenever an object receives a {{event("messageerror")}} event.
+
Is an {{event("Event_handlers", "event handler")}} called whenever an object receives a {{event("messageerror")}} event.
{{domxref("WindowEventHandlers.onoffline")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("offline")}} event is raised.
{{domxref("WindowEventHandlers.ononline")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("online")}} event is raised.
{{domxref("WindowEventHandlers.onpagehide")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pagehide")}} event is raised.
{{domxref("WindowEventHandlers.onpageshow")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pageshow")}} event is raised.
{{domxref("WindowEventHandlers.onpopstate")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("popstate")}} event is raised.
{{domxref("WindowEventHandlers.onrejectionhandled")}}
-
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.
+
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.
{{domxref("WindowEventHandlers.onresize")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("resize")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("resize")}} event is raised.
{{domxref("WindowEventHandlers.onstorage")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("storage")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("storage")}} event is raised.
{{domxref("WindowEventHandlers.onunhandledrejection")}}
-
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.
+
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.
{{domxref("WindowEventHandlers.onunload")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("unload")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("unload")}} event is raised.

规范

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 ---
{{APIRef("HTML DOM")}}
-

The onerror property of the {{domxref("HTMLMediaElement")}} interface is the {{domxref("EventHandler")}} for processing {{event("error")}} events.

+

The onerror property of the {{domxref("HTMLMediaElement")}} interface is the {{event("Event_handlers", "event handler")}} for processing {{event("error")}} events.

The error event fires when some form of error occurs while attempting to load or perform the media.

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

{{APIRef("Media Capture and Streams")}}

-

 MediaDevices.ondevicechange 属性是一种{{domxref("EventHandler")}},当{{domxref("MediaDevices")}} 接口的{{event("devicechange")}}事件被触发时会被调用. 不论{{Glossary("user agent")}}媒体设备的设置是否可用, 或者网站或者应用发生变了都会触发。无论何时你都可以使用 {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}}  去更新可用设备列表.

+

 MediaDevices.ondevicechange 属性是一种{{event("Event_handlers", "event handler")}},当{{domxref("MediaDevices")}} 接口的{{event("devicechange")}}事件被触发时会被调用. 不论{{Glossary("user agent")}}媒体设备的设置是否可用, 或者网站或者应用发生变了都会触发。无论何时你都可以使用 {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}}  去更新可用设备列表.

Syntax

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
{{domxref("MediaRecorder.ondataavailable")}}
调用它用来处理 {{event("dataavailable")}} 事件, 该事件可用于获取录制的媒体资源 (在事件的 data 属性中会提供一个可用的 {{domxref("Blob")}} 对象.)
{{domxref("MediaRecorder.onerror")}}
-
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.
+
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.
{{domxref("MediaRecorder.onpause")}}
用来处理 {{event("pause")}} 事件, 该事件在媒体暂停录制时触发({{domxref("MediaRecorder.pause()")}}).
{{domxref("MediaRecorder.onresume")}}
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
{{domxref("MediaStream.onaddtrack")}}
-
这是{{event("addtrack")}}事件在这个对象上触发时调用的事件处理器[{{domxref("EventHandler")}}],这时一个{{domxref("MediaStreamTrack")}}对象被添加到这个流。
+
这是{{event("addtrack")}}事件在这个对象上触发时调用的事件处理器[{{event("Event_handlers", "event handler")}}],这时一个{{domxref("MediaStreamTrack")}}对象被添加到这个流。
{{domxref("MediaStream.onended")}}
这是当流终止[{{event("ended (MediaStream)","ended")}}]时触发的事件。
{{domxref("MediaStream.onremovetrack")}}
-
这是{{event("removetrack")}}事件在这个对象上触发事调用的事件处理器[{{domxref("EventHandler")}}],这时一个对象从流上移除。
+
这是{{event("removetrack")}}事件在这个对象上触发事调用的事件处理器[{{event("Event_handlers", "event handler")}}],这时一个对象从流上移除。

方法

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
{{domxref("MediaStreamTrack.onstarted")}}
-
这是{{event("started")}}事件在这个对象上被触发时调用的事件处理器{{domxref("EventHandler")}},这时一个新的{{domxref("MediaStreamTrack")}}对象被添加到轨道源上。
+
这是{{event("started")}}事件在这个对象上被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},这时一个新的{{domxref("MediaStreamTrack")}}对象被添加到轨道源上。
{{domxref("MediaStreamTrack.onmute")}}
-
这是{{event("mute")}}事件在这个对象被触发时调用的事件处理器{{domxref("EventHandler")}},这时这个流被中断。
+
这是{{event("mute")}}事件在这个对象被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},这时这个流被中断。
{{domxref("MediaStreamTrack.onunmute")}}
-
这是{{event("unmute")}}事件在这个对象上被触发时调用的事件处理器{{domxref("EventHandler")}},未实现。
+
这是{{event("unmute")}}事件在这个对象上被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},未实现。
{{domxref("MediaStreamTrack.onoverconstrained")}}
这是{{event("overconstrained")}}事件在这个对象上被触发时调用的事件处理器{{event("overconstrained")}},未实现。
{{domxref("MediaStreamTrack.oneended")}}
-
这是{{event("ended_(MediaStream)", "ended")}}事件在这个对象被触发时调用的事件处理器{{domxref("EventHandler")}},未实现。
+
这是{{event("ended_(MediaStream)", "ended")}}事件在这个对象被触发时调用的事件处理器{{event("Event_handlers", "event handler")}},未实现。

方法

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
{{domxref("OfflineAudioContext.oncomplete")}}
-
当进程完成时,基于事件版本的{{domxref("OfflineAudioContext.startRendering()")}} 被使用之后,{{domxref("EventHandler")}} 将会被调用,{{event("complete")}} 事件类型为 {{domxref("OfflineAudioCompletionEvent")}})被触发。
+
当进程完成时,基于事件版本的{{domxref("OfflineAudioContext.startRendering()")}} 被使用之后,{{event("Event_handlers", "event handler")}} 将会被调用,{{event("complete")}} 事件类型为 {{domxref("OfflineAudioCompletionEvent")}})被触发。

方法

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
callback
-
一个当{{event("resourcetimingbufferfull")}} 事件触发时调用的{{domxref("EventHandler")}} 。
+
一个当{{event("resourcetimingbufferfull")}} 事件触发时调用的{{event("Event_handlers", "event handler")}} 。

例子

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

{{APIRef("WebRTC")}}{{SeeCompatTable}}

-

RTCPeerConnection.ondatachannel 属性是一个{{domxref("EventHandler")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。

+

RTCPeerConnection.ondatachannel 属性是一个{{event("Event_handlers", "event handler")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。

在这个事件被收到的同时,这个{{domxref("RTCDataChannel")}} 实际上并没有打开,确保在open这个事件在RTCDataChannel触发以后才去使用它。

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

{{APIRef("WebRTC")}}

-

 RTCPeerConnection 的属性 {{domxref("RTCPeerConnection.onicecandidate", "onicecandidate")}} (是一个事件触发器 {{domxref("EventHandler")}}) 能够让函数在事件{{event("icecandidate")}}发生在实例  {{domxref("RTCPeerConnection")}} 上时被调用。 只要本地代理{{Glossary("ICE")}} 需要通过信令服务器传递信息给其他对等端时就会触发 这让本地代理与其他对等体相协商而浏览器本身在使用时无需知道任何详细的有关信令技术的细节,只需要简单地应用这种方法就可使用您选择的任何消息传递技术将ICE候选发送到远程对等方。

+

 RTCPeerConnection 的属性 {{domxref("RTCPeerConnection.onicecandidate", "onicecandidate")}} (是一个事件触发器 {{event("Event_handlers", "event handler")}}) 能够让函数在事件{{event("icecandidate")}}发生在实例  {{domxref("RTCPeerConnection")}} 上时被调用。 只要本地代理{{Glossary("ICE")}} 需要通过信令服务器传递信息给其他对等端时就会触发 这让本地代理与其他对等体相协商而浏览器本身在使用时无需知道任何详细的有关信令技术的细节,只需要简单地应用这种方法就可使用您选择的任何消息传递技术将ICE候选发送到远程对等方。

Syntax

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

{{APIRef("WebRTC")}}{{SeeCompatTable}}RTCPeerConnection.ontrack 属性是一个 {{domxref("EventHandler")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。

+

{{APIRef("WebRTC")}}{{SeeCompatTable}}RTCPeerConnection.ontrack 属性是一个 {{event("Event_handlers", "event handler")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。

语法

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
{{domxref("ScriptProcessorNode.onaudioprocess")}}
-
Represents the {{domxref("EventHandler")}} to be called.
+
Represents the {{event("Event_handlers", "event handler")}} to be called.

方法

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

{{APIRef("Web Sockets API")}}

-

WebSocket.onmessage 属性是一个当收到来自服务器的消息时被调用的 {{domxref("EventHandler")}}。它由一个{{domxref("MessageEvent")}}调用。

+

WebSocket.onmessage 属性是一个当收到来自服务器的消息时被调用的 {{event("Event_handlers", "event handler")}}。它由一个{{domxref("MessageEvent")}}调用。

语法

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
{{domxref("GlobalEventHandlers.onload")}}
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.
{{domxref("WindowEventHandlers.onmessage")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("message")}} event is raised.
{{domxref("GlobalEventHandlers.onmousedown")}}
Called when ANY mouse button is pressed.
{{domxref("GlobalEventHandlers.onmousemove")}}
@@ -481,7 +481,7 @@ translation_of: Web/API/Window
{{domxref("GlobalEventHandlers.onselect")}}
Called after text in an input field is selected
{{domxref("GlobalEventHandlers.onselectionchange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.
{{domxref("WindowEventHandlers.onstorage")}}
Called when there is a change in session storage or local storage. See {{event("storage")}} event
{{domxref("GlobalEventHandlers.onsubmit")}}
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
{{domxref("WindowEventHandlers.onafterprint")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("afterprint")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("afterprint")}} event is raised.
{{domxref("WindowEventHandlers.onbeforeprint")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("beforeprint")}} event is raised.
{{domxref("WindowEventHandlers.onbeforeunload")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("beforeunload")}} event is raised.
{{domxref("WindowEventHandlers.onhashchange")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("hashchange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("hashchange")}} event is raised.
{{domxref("WindowEventHandlers.onlanguagechange")}} {{experimental_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("languagechange")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("languagechange")}} event is raised.
{{domxref("WindowEventHandlers.onmessage")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("message")}} event is raised.
{{domxref("WindowEventHandlers.onoffline")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("offline")}} event is raised.
{{domxref("WindowEventHandlers.ononline")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("online")}} event is raised.
{{domxref("WindowEventHandlers.onpagehide")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pagehide")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pagehide")}} event is raised.
{{domxref("WindowEventHandlers.onpageshow")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("pageshow")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("pageshow")}} event is raised.
{{domxref("WindowEventHandlers.onpopstate")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("popstate")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("popstate")}} event is raised.
{{domxref("WindowEventHandlers.onstorage")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("storage")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("storage")}} event is raised.
{{domxref("WindowEventHandlers.onunhandledrejection")}} {{experimental_inline}}
An event handler for unhandled {{jsxref("Promise")}} rejection events.
{{domxref("WindowEventHandlers.onunload")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("unload")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("unload")}} event is raised.

Methods

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 ---
{{ApiRef}}
-

{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{domxref("EventHandler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。

+

{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{event("Event_handlers", "event handler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。

{{event("beforeprint")}}和afterprint 事件允许页面在打印开始前修改它们的内容(比如移除一个横幅等),打印结束后,这些修改会恢复原状。一般情况下,你更喜欢使用 @media print CSS规则,但是在某些情况下这些事件会有他们的必要性。

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 ---
{{ApiRef}}
-
{{domxref("WindowEventHandlers")}}的onbeforeprint属性是用于处理当前窗口的{{event("beforeprint")}}事件的{{domxref("EventHandler")}}。在打开打印对话窗口之前会触发这些事件。
+
{{domxref("WindowEventHandlers")}}的onbeforeprint属性是用于处理当前窗口的{{event("beforeprint")}}事件的{{event("Event_handlers", "event handler")}}。在打开打印对话窗口之前会触发这些事件。
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 ---

{{APIRef("HTML DOM")}}{{ SeeCompatTable() }}

-

{{domxref("WindowEventHandlers")}}的onmessage 属性是当对象接收到{{event("message")}} 事件时被调用的{{domxref("EventHandler")}} .

+

{{domxref("WindowEventHandlers")}}的onmessage 属性是当对象接收到{{event("message")}} 事件时被调用的{{event("Event_handlers", "event handler")}} .

语法

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

概述

-

{{domxref("WindowEventHandlers")}} 的混入特性 onunload 是 {{domxref("EventHandler")}}  处理 {{Event("unload")}} 事件的方法。该事件在关闭窗口资源和内容的时候触发。页面资源的清除工作会在 unload  事件之后进行。

+

{{domxref("WindowEventHandlers")}} 的混入特性 onunload 是 {{event("Event_handlers", "event handler")}}  处理 {{Event("unload")}} 事件的方法。该事件在关闭窗口资源和内容的时候触发。页面资源的清除工作会在 unload  事件之后进行。

注意事项: 具备弹窗阻止功能的浏览器会忽略 onunload  事件回调中调用的 {{domxref("Window.open()")}} 方法。

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
{{domxref("Worker.onmessage")}}
当{{domxref("MessageEvent")}}类型的事件冒泡到 worker 时,事件监听函数 {{ domxref("EventListener") }} 被调用.  例如,一个消息通过 {{domxref("DedicatedWorkerGlobalScope.postMessage")}},从执行者发送到父页面对象,消息保存在事件对象的 {{domxref("MessageEvent.data", "data")}} 属性中.
{{domxref("Worker.onmessageerror")}}
-
当{{event("messageerror")}} 类型的事件发生时,对应的{{domxref("EventHandler")}} 代码被调用。
+
当{{event("messageerror")}} 类型的事件发生时,对应的{{event("Event_handlers", "event handler")}} 代码被调用。

方法

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

{{APIRef("Web Workers API")}}

-

{{domxref("Worker")}} 接口的onmessage属性表示一个{{domxref("EventHandler")}}事件处理函数,当{{event("message")}} 事件发生时,该函数被调用。这些事件所属{{domxref("MessageEvent")}}类型,且当Worker子线程返回一条消息时被调用(比如:从{{domxref("DedicatedWorkerGlobalScope.postMessage")}}函数发出的信息)

+

{{domxref("Worker")}} 接口的onmessage属性表示一个{{event("Event_handlers", "event handler")}}事件处理函数,当{{event("message")}} 事件发生时,该函数被调用。这些事件所属{{domxref("MessageEvent")}}类型,且当Worker子线程返回一条消息时被调用(比如:从{{domxref("DedicatedWorkerGlobalScope.postMessage")}}函数发出的信息)

注意: 消息被装载到 {{event("message")}}事件对象的data属性。(译者:即传递的消息参数将被赋值给onmessage处理函数的事件参数e中的data属性)

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
{{domxref("WorkerGlobalScope.onerror")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("error")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("error")}} event is raised.
{{domxref("WorkerGlobalScope.onoffline")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("offline")}} event is raised.
{{domxref("WorkerGlobalScope.ononline")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("online")}} event is raised.
{{domxref("WorkerGlobalScope.onlanguagechange")}}
-
An {{domxref("EventHandler")}} fired at the global/worker scope object when the user's preferred languages change.
+
An {{event("Event_handlers", "event handler")}} fired at the global/worker scope object when the user's preferred languages change.
{{domxref("WorkerGlobalScope.onclose")}} {{non-standard_inline}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("close")}} event is raised.
+
Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("close")}} event is raised.
{{domxref("WorkerGlobalScope.onrejectionhandled")}} {{non-standard_inline}}
An event handler for handled Promise rejection events.
{{domxref("WorkerGlobalScope.onunhandledrejection")}} {{non-standard_inline}}
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
{{domxref("XMLHttpRequest.onreadystatechange")}}
-
readyState 属性发生变化时,调用的 {{domxref("EventHandler")}}。
+
readyState 属性发生变化时,调用的 {{event("Event_handlers", "event handler")}}。
{{domxref("XMLHttpRequest.readyState")}} {{readonlyinline}}
返回 一个无符号短整型(unsigned short)数字,代表请求的状态码。
{{domxref("XMLHttpRequest.response")}} {{readonlyinline}}
@@ -61,7 +61,7 @@ translation_of: Web/API/XMLHttpRequest
{{domxref("XMLHttpRequest.timeout")}}
一个无符号长整型(unsigned long)数字,表示该请求的最大请求时间(毫秒),若超出该时间,请求会自动终止。
{{domxref("XMLHttpRequestEventTarget.ontimeout")}}
-
当请求超时调用的 {{domxref("EventHandler")}}。{{ gecko_minversion_inline(" 12.0 ")}}
+
当请求超时调用的 {{event("Event_handlers", "event handler")}}。{{ gecko_minversion_inline(" 12.0 ")}}
{{domxref("XMLHttpRequest.upload")}} {{readonlyinline}}
{{domxref("XMLHttpRequestUpload")}},代表上传进度。
{{domxref("XMLHttpRequest.withCredentials")}}
-- cgit v1.2.3-54-g00ecf