Prevent default action from being triggered (form submission prevention or link popups)

When there’s a link that should open a window or do something different than it’s default behavior it’s best to add the javascript in an event (i.e. onclick) while keeping the regular href statement for users without javascript.

Leave a Reply

Your email address will not be published. Required fields are marked *