News for hackers. Stuff that matters.
Re:Website mistakes that are easily fixed by jakub_g on Friday June 14, 2013 @04:26PM (#5882289)
I particularly hate when someone does things like (1)

  <a href="navigateToFoo()">
when it should be

  <a href="foo.htm">
so I can't middle click it or Ctrl-click it to open in a new tab. Even worse if there's (2)

  href="#"
added, which upon middle click will happily load the page I'm currently on inside the new tab.

I have an extension in Firefox which changes the mouse cursor for (1) from pointer (hand), so I can easily distinguish that case, I hope this became a W3C standard somehow (though the standard way for executing JS are buttons, not anchors, so probably it won't ever become standardized).

Re:Website mistakes that are easily fixed by derefr on Friday June 14, 2013 @08:59PM (#5883391)
I'm surprised that no browser has done the obvious yet: treat middle-clicking a DOM element with a bound onclick handler the same as left-clicking that DOM element, but override window.open and window.location.redirect within the context of that handler call to open links in a new tab instead.
Re:Website mistakes that are easily fixed by jakub_g on Friday June 14, 2013 @06:31PM (#5882884)
*should have been

  <a onclick="navigateToFoo()">