Re:Always “hover” before you click? Wrong.
by oneandoneis2 on Monday October 29, 2012 @10:05AM
(#4712287)
That's actually a slightly convoluted way around - you can also use JS to cancel the browser's "normal" action for an element and have it do something else - see jQuery example http://api.jquery.com/event.preventDefault/
[ Parent
| on HN ]
Re:Always “hover” before you click? Wrong.
by danielwozniak on Monday October 29, 2012 @10:18AM
(#4712344)
Actually you don't need that either.
onclick="window.location='<badurl>';return false;"
If you want to be even more shady you can use the 'onmouseover' event with the same redirect as above. Which defeats the look before you leap approach of hovering before clicking.
onmouseover="window.location='<badurl>';return false;"