How to stop an event in JS?
<p>I would like to stop my event after sayHello1 </p>

<pre><code>var sayHello1 = function(e) {
    console.log("hello1");
    e.stopMe = true;
    e.preventDefault(); // doesn't work
    e.stopPropagation(); // doesn't work
    return false; // doesn't work
};
var sayHello2 = function(e) {
    console.log("hello2"); // Still fired !
    if (e.stopMe ) console.log("stop hello2"); // works
};

document.addEventListener("click", sayHello1);
document.addEventListener("click", sayHello2);
</code></pre>

<p>"e.stopMe" cant help to stop sayHello2, but there is no way to do that ! (imagine firefox &amp; Co using the name "stopMe" on their browser !)</p>