reset

当表单被重置时触发reset事件。

综合信息

Specification

HTML5

Interface
Event
Bubbles

是(可以指定不发生冒泡的简单事件)

Cancelable

Target

Element

默认行为

重置父表单元素所有的值。

属性

Property Type Description
target 只读 EventTarget 事件的目标(DOM 树最顶端的元素)。
type 只读 DOMString 事件的类型。
bubbles 只读 Boolean 是否指定事件冒泡。
cancelable 只读 Boolean 事件是否可以被取消。

规范

Specification
HTML Standard
# event-reset