cancelable Event Attribute
Complete Event Object Reference
Definition and Usage
The cancelable event attribute returns whether or not the event is a cancelable
event.
The event is cancelable if it is possible to prevent the events default
action.
Syntax
Example
The following example checks if the triggered event is a cancelable event:
<html>
<head>
<script type="text/javascript">
function isEventCancelable(event)
{
alert(event.cancelable);
}
</script>
</head>
<body onmousedown="isEventCancelable(event)">
<p>Click somewhere in the document.
An alert box will tell if the
event is a cancelable event.</p>
</body>
</html>
|
Try-It-Yourself Demos
Check if an event is a cancelable event
Complete Event Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|