Skip to content

Instantly share code, notes, and snippets.

@yangkun
Created August 12, 2013 15:46
Show Gist options
  • Save yangkun/6212082 to your computer and use it in GitHub Desktop.
Save yangkun/6212082 to your computer and use it in GitHub Desktop.
[js] Prevent Default Event for IE
function pde(e) { //Function to prevent Default Events
if(e.preventDefault)
e.preventDefault();
else
e.returnValue = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment