3 ms·
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 - se
by oneandoneis2 14y ago
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/ http://api.jquery.com/event.preventDefault/
- danielwozniak 14y agoActually 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;"