HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Find out if a specific event is cancelable
The cancelable event property returns a Boolean value indicating whether or not an event is a cancelable event.
The event is cancelable if it is possible to prevent the events default action.
To cancel an event, use the preventDefault() method.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
cancelable | Yes | 9.0 | Yes | Yes | Yes |
Return Value: | A Boolean, indicating whether the specified event is a cancelable event.
Possible values:
|
---|---|
DOM Version: | DOM Level 2 Events |