Is it possible with JavaScript to change the browser\'s URL, but not leave the page?
No, it's not possible. And, whenever it is possible, that is a browser bug (I know about previous security bugs related to this behavior, and they were fixed in past).
Actually... You can change the last portion of the URL, anything after the #
character. But the hostname and path can't be changed without leaving the page.