Guest User

Untitled

a guest
Jul 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $("#myHref").die("click", aClick); // this will remove any existing event handlers
  2. $("#myHref").click(yourhandler); // add your handler
  3.  
  4. <a href=".." onclick="yourhandler">
  5.  
  6. function doSomething(e)
  7. {
  8. if (!e) var e = window.event;
  9. e.cancelBubble = true;
  10. if (e.stopPropagation) e.stopPropagation();
  11. }
Add Comment
Please, Sign In to add comment