MDN will be in maintenance mode on Thursday September 21st, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.

这篇翻译不完整。请帮忙从英语翻译这篇文章

当表单提交的时候触发submit事件

注意submit事件只能作用于form元素,不能作用于button或者<input type="submit">

General info

Specification
HTML5
Interface
Event
Bubbles
Yes (although specified as a simple event that doesn't bubble)
Cancelable
Yes
Target
Element
Default Action
Varies (send the content of the form to the server).

Properties

Property Type Description
target 只读 EventTarget The event target (the topmost target in the DOM tree).
type 只读 DOMString The type of event.
bubbles 只读 Boolean Whether the event normally bubbles or not
cancelable 只读 Boolean Whether the event is cancellable or not?

文档标签和贡献者

 此页面的贡献者: yangxiaoqiao
 最后编辑者: yangxiaoqiao,