Skip to content

Instantly share code, notes, and snippets.

@bdsexton
Created February 1, 2015 18:58
Show Gist options
  • Save bdsexton/26a42d742d445e467dba to your computer and use it in GitHub Desktop.
Save bdsexton/26a42d742d445e467dba to your computer and use it in GitHub Desktop.
Non-Destructive load-Event Handler
window.addEventListener("load", function(event) {
console.log("Hello! Non-destructive load-event handlers are the best kind! Don't you agree?");
console.log("load event: %o", event);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment