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

Discussion in 'Javascript' started by Chico, May 10, 2005.

  1. Chico

    Chico Guest

    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
    Chico, May 10, 2005
    #1
    1. Advertising

  2. Chico

    Joakim Braun Guest

    "Chico" <> skrev i meddelandet
    news:...
    > 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.

    --
    Joakim Braun
    Joakim Braun, May 10, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon paugh
    Replies:
    1
    Views:
    655
  2. guenther schoebel
    Replies:
    2
    Views:
    6,457
    Eric Cartman
    Oct 10, 2003
  3. Replies:
    3
    Views:
    772
    Guillermo
    Apr 26, 2007
  4. Just D.
    Replies:
    0
    Views:
    387
    Just D.
    Aug 11, 2004
  5. Razzbar
    Replies:
    1
    Views:
    122
    kaeli
    Apr 23, 2004
Loading...

Share This Page