stopEvent

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

boolean stopEvent(Event ev);
evEventa native HTML event
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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.