cancelable Event PropertyEvent Object
Definition and Usage
The cancelable event property returns whether or not the event is a cancelable event.
The event is cancelable if it is possible to prevent the events default action.
The following example checks if the triggered event is a cancelable event:
<p onclick="myFunction(event)">Click this paragraph.
An alert box will tell if the
event is a cancelable event.</p>
Try it yourself »
Thank You For Helping Us!
Your message has been sent to W3Schools.