News for hackers. Stuff that matters.
Re:Why using anchors as buttons sucks by trb on Sunday February 05, 2012 @04:25AM (#3553709)
It is, the comments on the blog say as much as well. Use href="#" if a link makes no sense (anything UI-related and ephemeral, basically).
Re:Why using anchors as buttons sucks by pornel on Sunday February 05, 2012 @08:06AM (#3553954)
Even many UI-related items could have sensible URL, e.g. href="#show-widget" (and read location.hash and perform that action when page is loaded).

The href is not only for JS-less browsers, it's also for links opened in new tab or saved in browsing session.