Created
July 6, 2020 11:41
-
-
Save ivanteoh/20763a41b34d9c9c02efc8451008eca4 to your computer and use it in GitHub Desktop.
Javascript: 101 Week 5 Track 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e.cancelBubble = true; | |
if (e.stopPropagation) { | |
e.stopPropagation(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e.returnValue = false; // from Netscape | |
if (e.preventDefault) { // from w3c | |
e.preventDefault(); | |
} | |
return false; // event handler return false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment