HTML | DOM cancelable Event Property
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
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.