News for hackers. Stuff that matters.
Re:Why using anchors as buttons sucks by pilif on Sunday February 05, 2012 @09:27AM (#3554089)
You really should not return false from event handlers. Returning false is equivalent to calling both preventDefault() (that's what you want) AND stopPropagation()

By stopping propagation, you break delegation and make it impossible at worst and very random at best to add another handler to the same event.

Just use preventDefault o stop the browser from following the link.

Re:Why using anchors as buttons sucks by cema on Sunday February 05, 2012 @10:51AM (#3554308)

  Returning false is equivalent to calling both preventDefault()
  (that's what you want) AND stopPropagation()
This is so in jQuery. In basic Javascript "return false" does not stop the propagation. See http://stackoverflow.com/questions/1357118/javascript-event-...