我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

The invalid event fires when a submittable element has been checked for validity and doesn't satisfy its constraints. The validity of submittable elements is checked before submitting their owner <form>, or after the checkValidity() method of the element or its owner <form> is called.

General info

Interface Event
Bubbles No
Cancelable Yes
Targets Element
Default Action Varies (can prevent form from being submitted)

Properties

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

Specification

HTML5

See also

文档标签和贡献者

此页面的贡献者: mfluehr, fscholz, teoli, Nickolay, Sheppy, ethertank, louisremi
最后编辑者: mdnwebdocs-bot,