GlobalEventHandlers.oncancel

The oncancel property returns the onCancel event handler code on the current element.

Syntax

element.oncancel = functionRef;

Notes

The cancel event is raised when the user wants to cancel the given element.

Prevents the element from to spread, preventing any parent handlers from being notified of it.

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

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