Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Tuesday, October 4, 2011
Two useful javascript methods: preventDefault, stopPropagation
event.preventDefault
Cancels the event if it is cancelable, without stopping further propagation of the event
https://developer.mozilla.org/en/DOM/event.preventDefault
event.stopPropagation
http://api.jquery.com/event.stopPropagation/
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)