GlobalEventHandlers.oninvalid

The oninvalid property of the GlobalEventHandlers mixin is the EventHandler for processing invalid events.

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

Syntax

element.oninvalid = handlerFunction;
var handlerFunction = element.oninvalid;

handlerFunction is either null or a JavaScript function specifying the handler for the event.

Specification

Specification Status Comment
HTML Living Standard
The definition of 'oninvalid' in that specification.
Living Standard  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS ? Samsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: mfluehr, fscholz, sideshowbarker, wbamberg, rolfedh, Guillaume-Heras
Last updated by: mfluehr,