The website that I am working on has a
tag point to a different URL than the one that the website has. What I would like to do is get around the
If you are serious about trueURL = window.location.href
then you are working WAY too hard.
Just make the link #link1
- it automatically will be relative to the current href.
If that was just an example, you may be interested in the:
tag. This will let you change the relative href for all links in the page at once.
And you can do it with javascript by getting each
DOM element and modifying the href
property.