Playing with JavaScript and Hyperlinks

This is kinda geeky, but here’s something to try on your own Web page:

<a href=”http://www.ask-leo.com/”
  onclick=”self.location.href=’http://www.answersquad.com/’;”>Ask For Help</a>

Kinda geeky, I admit, but what it does is open different Web pages based on whether you click or shift-click/right-click/option-click (depending on browser). And older browsers will link to a different place than newer browsers too. Fun, eh? Even better, the window status line shows the href value, even though they’re actually going to be taken somewhere else when they click.

Hmmm… now that I think about it, I wonder if this isn’t a phish hook?

Leave a Reply

Your email address will not be published. Required fields are marked *