Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created October 14, 2011 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/1286515 to your computer and use it in GitHub Desktop.
Save Integralist/1286515 to your computer and use it in GitHub Desktop.
An example of http://flowjs.com/ cross-browser API
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