welcome to my blargh

now with 88.333% more desu. repeating of course.

« Back to blog

Quickie: Preventing Default Link and Button Behavior with jQuery

Real simple: by calling the preventDefault() method on the event, you can stop a link from taking a user away or a button from posting back. This is a routine task for providing controls for your web app. You will use this all the time.

Going a bit further, you can put in some code to execute:

Loading mentions Retweet

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     Connect     twitter