To hide the true destination of a link I'm using the following code:
<a href="http://example.com" onclick="window.location='http://url-i-want-to-hide.com/'; return false;">Click me</a>
However, if I do right-click and then open in new window, it goes to the url specified in the anchor href tag. I want it to go to the url specified in the javascript.
Is there a way to do this?
Thanks in advance