Javascript URL Masquerading

Prompted by this rant...

The following two anchors have identical URLs as the value of "href";

This is the URL, unmasqueraded.

This is the URL using masquerading.

But clicking the second URL, when Javascript is enabled, actually takes you here instead, muhahaha!

This hack is so mind-numbingly simple, I'm surprised Google - Kings of Javascript - didn't think of using it. The "secret sauce" is just the use of "onclick" on the anchor; something that's normally considered harmful, and indeed may be a little bit "evil" in that the intent is user deception. But think of the convenience! 8-) Hmm, actually, perhaps that's why Google didn't use it. Dunno.