目录

HTML DOM 事件对象


事件对象

当 HTML 中发生事件时,该事件属于某个事件对象,就像鼠标单击事件属于 MouseEvent 对象一样。

有关事件的教程,请阅读我们的JavaScript 事件教程


事件对象

所有事件对象均基于事件对象。

所有事件对象都继承事件对象的属性和方法。

Object Description
Event The parent of all event objects

事件对象

Object Handles
AnimationEvent CSS animations
ClipboardEvent Modification of the clipboard
DragEvent Drag and drop interaction
FocusEvent Focus-related events
HashChangeEvent Changes in the anchor part of an URL
InputEvent User input
KeyboardEvent Keyboard interaction
MouseEvent Mouse interaction
PageTransitionEvent Navigation between web pages
PopStateEvent Changes in the page history
ProgressEvent The progress of loading external files
StorageEvent Changes in the Web Storage
TouchEvent Touch interaction
TransitionEvent CSS transitions
UiEvent User interface interaction
WheelEvent Mouse-wheel interaction