reset
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Please take two minutes to fill out our short survey.
当表单被重置时触发reset
事件。
综合信息
- Specification
- Interface
Event
- Bubbles
-
是(可以指定不发生冒泡的简单事件)
- Cancelable
-
是
- Target
-
Element
- 默认行为
-
重置父表单元素所有的值。
属性
Property | Type | Description |
---|---|---|
target 只读 |
EventTarget |
事件的目标(DOM 树最顶端的元素)。 |
type 只读 |
DOMString |
事件的类型。 |
bubbles 只读 |
Boolean |
是否指定事件冒泡。 |
cancelable 只读 |
Boolean |
事件是否可以被取消。 |
规范
Specification |
---|
HTML # event-reset |