Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#myHref").die("click", aClick); // this will remove any existing event handlers
- $("#myHref").click(yourhandler); // add your handler
- <a href=".." onclick="yourhandler">
- function doSomething(e)
- {
- if (!e) var e = window.event;
- e.cancelBubble = true;
- if (e.stopPropagation) e.stopPropagation();
- }
Add Comment
Please, Sign In to add comment