This happens in both firefox and chrome. I have a perfectly ordinary link, like so:
<a href='somewhere'>this is my link</a>
But, the browser is converting this into an absolute link, like this:
<a href='http://www.example.com/dir/page/somewhere'>this is my link</a>
How do I prevent browsers from doing this? It is causing problems, because I have javascript on the page that depends on the href attribute NOT having the http:// prefix, and when browsers do this is breaks my code. So, is there a way to prevent this from happening? Or, is there a way to access the original href attribute, the way it was before the browser modified it?
I am not using jquery. I do have prototype available, but I would prefer to know how to do this in pure javascript.