Opening a document using javascript

Discussion in 'JavaScript' started by gentlefoot, Sep 14, 2007.

  1. #1
    I would like to open a new page using javascript. I have found a way to open a document in a new browser window but I would like to open the document in the current browser window instead.

    Here is what I was using to open the document in a new browser:

    open("page_name")

    But is there a argument I can add to open the page in the current browser window?

    Thanks in advance for your help. :)
     
    gentlefoot, Sep 14, 2007 IP
  2. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    window.location="file.ext";

    ?
     
    HypertextFever, Sep 14, 2007 IP