The cancelable Event property is used to indicate whether or not an event can have its default actions prevented. If the default actions can be prevented the value is true, else the value is false. It is a read-only property.
Return Value: It returns a Boolean which indicates whether the event is cancelable or not.
- It returns true indicating the event is cancelable.
- It returns false indicating the event is not cancelable.
Before clicking on the button:
After clicking on the button:
Supported Browsers: The browser supported by cancelable Event property are listed below:
- Apple Safari
- Google Chrome
- Internet Explorer
- HTML | cancelable Event Property
- HTML | returnValue Event Property
- HTML | currentTarget Event Property
- HTML | DOM target Event Property
- HTML | isTrusted Event Property
- HTML | bubbles Event Property
- HTML | defaultPrevented Event Property
- HTML | DOM type Event Property
- HTML | view Event Property
- HTML | DOM timeStamp Event Property
- jQuery | event.namespace Property
- jQuery | event.currentTarget Property
- jQuery | event.delegateTarget Property
- jQuery | event.data Property
- HTML | DOM onbeforeunload Event
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.