stopEvent

stops processing of an event beyond the current target (called in some event handler)

boolean stopEvent(Event ev);

Parameters

evEventa native HTML event

Returns

booleanfalse

Example

<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.stopEvent(e);
 
}

See also
Back to top