How do you change the web page in javascript?

Discussion in 'OT Technology' started by Peyomp, Mar 22, 2006.

  1. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    How do you change the page in javascript? In other words go to a completely new URL in the same window.

    Dumb question, but I actually can't find it/get it to work.
     
  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,914
    Likes Received:
    8
    Location:
    Los Angeles
    window.location="http://url.com";
     
  3. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    ...

    We were calling window.location("http://url.com");

    Learn as you go :) Thanks.
     
  4. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,914
    Likes Received:
    8
    Location:
    Los Angeles
    JavaScript pisses me off like that.

    :o
     
  5. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    With all the hype around AJAX... and its not all hype... javascript is a turd.
     

Share This Page