GlobalEventHandlers
GlobalEventHandlers
描述了一系列 web worker 的事件接口 HTMLElement
, Document
, Window
, 或 WorkerGlobalScope
。这里面的每一个接口都可以添加更多的事件句柄。
Note:GlobalEventHandlers
是一个混入对象 (mixin) 而不是一个真正的接口,所以无法创建直接基于GlobalEventHandlers
的对象。
属性
除了下面的事件句柄外,此接口不包含任何其他属性。
Event handlers
这些事件定义在 GlobalEventHandlers
中,并被混入和实现在HTMLElement
, Document
, Window
上,任意 html 元素、document 对象,window 对象上均可以使用它提供的属性, 即时是全局的WorkerGlobalScope
。
GlobalEventHandlers.onabort
- 这是一个事件句柄
event handler
,当停止abort (en-US)
事件触发时会被调用。 GlobalEventHandlers.onanimationcancel
Non-Standard- 这是一个事件句柄
event handler
,当 CSS 动画取消animationcancel
事件触发时被调用,这表示某个正在执行的 CSS 动画被取消了。 GlobalEventHandlers.onanimationend
Non-Standard- 这是一个事件句柄
event handler
,当 CSS 动画播放完成animationend (en-US)
事件触发时被调用,这表示某个 CSS 动画已经播放完成了。 GlobalEventHandlers.onblur
- 这是一个事件句柄
event handler
,当失去焦点blur (en-US)
事件触发时会被调用。 GlobalEventHandlers.onerror
- 这是一个错误发生时的事件句柄
event handler
,当发生错误error (en-US)
事件时会被调用。 GlobalEventHandlers.onfocus
- Is an
event handler
representing the code to be called when thefocus (en-US)
event is raised. GlobalEventHandlers.oncancel
- Is an
event handler
representing the code to be called when thecancel
event is raised. GlobalEventHandlers.oncanplay
- Is an
event handler
representing the code to be called when thecanplay (en-US)
event is raised. GlobalEventHandlers.oncanplaythrough
- Is an
event handler
representing the code to be called when thecanplaythrough (en-US)
event is raised. GlobalEventHandlers.onchange
- Is an
event handler
representing the code to be called when thechange (en-US)
event is raised. GlobalEventHandlers.onclick
- Is an
event handler
representing the code to be called when theclick (en-US)
event is raised. GlobalEventHandlers.onclose
- Is an
event handler
representing the code to be called when theclose
event is raised. - Is an
event handler
representing the code to be called when thecontextmenu (en-US)
event is raised. GlobalEventHandlers.oncuechange
- Is an
event handler
representing the code to be called when thecuechange (en-US)
event is raised. GlobalEventHandlers.ondblclick
- Is an
event handler
representing the code to be called when thedblclick (en-US)
event is raised. GlobalEventHandlers.ondrag
- Is an
event handler
representing the code to be called when thedrag (en-US)
event is raised. GlobalEventHandlers.ondragend
(en-US)- Is an
event handler
representing the code to be called when thedragend (en-US)
event is raised. GlobalEventHandlers.ondragenter
(en-US)- Is an
event handler
representing the code to be called when thedragenter (en-US)
event is raised. GlobalEventHandlers.ondragexit
(en-US)- Is an
event handler
representing the code to be called when thedragexit
event is raised. GlobalEventHandlers.ondragleave
- Is an
event handler
representing the code to be called when thedragleave (en-US)
event is raised. GlobalEventHandlers.ondragover
(en-US)- Is an
event handler
representing the code to be called when thedragover (en-US)
event is raised. GlobalEventHandlers.ondragstart
(en-US)- Is an
event handler
representing the code to be called when thedragstart (en-US)
event is raised. GlobalEventHandlers.ondrop
- Is an
event handler
representing the code to be called when thedrop (en-US)
event is raised. GlobalEventHandlers.ondurationchange
- Is an
event handler
representing the code to be called when thedurationchange (en-US)
event is raised. GlobalEventHandlers.onemptied
(en-US)- Is an
event handler
representing the code to be called when theemptied (en-US)
event is raised. GlobalEventHandlers.onended
- Is an
event handler
representing the code to be called when theended (en-US)
event is raised. GlobalEventHandlers.oninput
- Is an
event handler
representing the code to be called when theinput (en-US)
event is raised. GlobalEventHandlers.oninvalid
- Is an
event handler
representing the code to be called when theinvalid (en-US)
event is raised. GlobalEventHandlers.onkeydown
- Is an
event handler
representing the code to be called when thekeydown (en-US)
event is raised. GlobalEventHandlers.onkeypress
- Is an
event handler
representing the code to be called when thekeypress (en-US)
event is raised. GlobalEventHandlers.onkeyup
- Is an
event handler
representing the code to be called when thekeyup (en-US)
event is raised. GlobalEventHandlers.onload
- Is an
event handler
representing the code to be called when theload (en-US)
event is raised. GlobalEventHandlers.onloadeddata
- Is an
event handler
representing the code to be called when theloadeddata (en-US)
event is raised. GlobalEventHandlers.onloadedmetadata
- Is an
event handler
representing the code to be called when theloadedmetadata (en-US)
event is raised. GlobalEventHandlers.onloadstart
- Is an
event handler
representing the code to be called when theloadstart (en-US)
event is raised. GlobalEventHandlers.onmousedown
- Is an
event handler
representing the code to be called when themousedown (en-US)
event is raised. GlobalEventHandlers.onmouseenter
- Is an
event handler
representing the code to be called when themouseenter (en-US)
event is raised. GlobalEventHandlers.onmouseleave
- Is an
event handler
representing the code to be called when themouseleave (en-US)
event is raised. GlobalEventHandlers.onmousemove
- Is an
event handler
representing the code to be called when themousemove (en-US)
event is raised. GlobalEventHandlers.onmouseout
- Is an
event handler
representing the code to be called when themouseout (en-US)
event is raised. GlobalEventHandlers.onmouseover
- Is an
event handler
representing the code to be called when themouseover (en-US)
event is raised. GlobalEventHandlers.onmouseup
- Is an
event handler
representing the code to be called when themouseup (en-US)
event is raised. GlobalEventHandlers.onmousewheel
(en-US)- Is an
event handler
representing the code to be called when themousewheel (en-US)
event is raised. GlobalEventHandler.onmozfullscreenchange
Non-Standard- Is an
event handler
representing the code to be called when thefullscreenchange (en-US)
event is raised. GlobalEventHandler.onmozfullscreenerror
Non-Standard- Is an
event handler
representing the code to be called when thefullscreenerror (en-US)
event is raised. GlobalEventHandlers.onpause
- Is an
event handler
representing the code to be called when thepause (en-US)
event is raised. GlobalEventHandlers.onplay
- Is an
event handler
representing the code to be called when theplay (en-US)
event is raised. GlobalEventHandlers.onplaying
- Is an
event handler
representing the code to be called when theplaying (en-US)
event is raised. GlobalEventHandlers.onpointerdown
- Is an
event handler
representing the code to be called when thepointerdown
event is raised. GlobalEventHandlers.onpointermove
- Is an
event handler
representing the code to be called when thepointermove
event is raised. GlobalEventHandlers.onpointerup
- Is an
event handler
representing the code to be called when thepointerup
event is raised. GlobalEventHandlers.onpointercancel
- Is an
event handler
representing the code to be called when thepointercancel
event is raised. GlobalEventHandlers.onpointerover
- Is an
event handler
representing the code to be called when thepointerover
event is raised. GlobalEventHandlers.onpointerout
- Is an
event handler
representing the code to be called when thepointerout
event is raised. GlobalEventHandlers.onpointerenter
- Is an
event handler
representing the code to be called when thepointerevent
event is raised. GlobalEventHandlers.onpointerleave
- Is an
event handler
representing the code to be called when thepointerleave
event is raised. GlobalEventHandlers.onpointerlockchange
Experimental- Is an
event handler
representing the code to be called when thepointerlockchange (en-US)
event is raised. GlobalEventHandlers.onpointerlockerror
Experimental- Is an
event handler
representing the code to be called when thepointerlockerror (en-US)
event is raised. GlobalEventHandlers.onprogress
- Is an
event handler
representing the code to be called when theprogress (en-US)
event is raised. GlobalEventHandlers.onratechange
- Is an
event handler
representing the code to be called when theratechange (en-US)
event is raised. GlobalEventHandlers.onreset
- Is an
event handler
representing the code to be called when thereset (en-US)
event is raised. GlobalEventHandlers.onscroll
- Is an
event handler
representing the code to be called when thescroll (en-US)
event is raised. GlobalEventHandlers.onseeked
- Is an
event handler
representing the code to be called when theseeked (en-US)
event is raised. GlobalEventHandlers.onseeking
- Is an
event handler
representing the code to be called when theseeking (en-US)
event is raised. GlobalEventHandlers.onselect
- Is an
event handler
representing the code to be called when theselect (en-US)
event is raised. GlobalEventHandlers.onshow
- Is an
event handler
representing the code to be called when theshow (en-US)
event is raised. GlobalEventHandlers.onsort
Experimental- Is an
event handler
representing the code to be called when thesort
event is raised. GlobalEventHandlers.onstalled
- Is an
event handler
representing the code to be called when thestalled (en-US)
event is raised. GlobalEventHandlers.onsubmit
- Is an
event handler
representing the code to be called when thesubmit (en-US)
event is raised. GlobalEventHandlers.onsuspend
- Is an
event handler
representing the code to be called when thesuspend (en-US)
event is raised. GlobalEventHandlers.ontimeupdate
- Is an
event handler
representing the code to be called when thetimeupdate (en-US)
event is raised. GlobalEventHandlers.onvolumechange
- Is an
event handler
representing the code to be called when thevolumechange (en-US)
event is raised. GlobalEventHandlers.onwaiting
- Is an
event handler
representing the code to be called when thewaiting (en-US)
event is raised.
Methods
This interface defines no method.
Specifications
Specification |
---|
HTML Standard # globaleventhandlers |
Browser compatibility
BCD tables only load in the browser