Created
October 14, 2011 08:00
-
-
Save Integralist/1286515 to your computer and use it in GitHub Desktop.
An example of http://flowjs.com/ cross-browser API
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
window.onload = function() { | |
var foo = document.getElementById("abc"); | |
var ZOMG = function(e) { | |
alert("zomg"); | |
e.preventDefault(); | |
}; | |
foo.addEventListener("click", ZOMG, false); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment