stops the event processing and cancels its default action (called in some event handler)
ev | Event | a native HTML event |
boolean | false |
<a id="mylink" href='http://google.com'>Google</a>
document.getElementById("mylink").onclick = function(e)
{
alert("The link doesn't redirect us to the Google page anymore");
return webix.html.preventEvent(e);
}
If the specified event is cancelable, the method signifies that it should be cancelled. If the event can't be cancelled the method has no effect.