I know that the following JavaScript code instructs the browser to insert the specified URL string into the address bar AND go there:
document.location.href = 'http://www.john-doe.com/';
However, what I want to do is to only change the URL that appears in the address bar, but don't actually go to that URL.
How can I do this?