How do I change a URL w/o loading a page?

C

Chico

Hi,

Is there a way I can change the URL address in JavaScript without
loading the page? I can't use document.URL or window.location because
they force the browser to reload after the URL is changed.

I want to do the equivalent of manually typing in a URL without
hitting the enter key.

Thanks
 
J

Joakim Braun

Chico said:
Hi,

Is there a way I can change the URL address in JavaScript without
loading the page? I can't use document.URL or window.location because
they force the browser to reload after the URL is changed.

I want to do the equivalent of manually typing in a URL without
hitting the enter key.

That might have the ungratifying result of allowing http://www.phishtank.ru
to masquerade as http://www.bankofamerica.com in the address field.

I hope it can't be done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top