redirect to the parent window

Discussion in 'JavaScript' started by LanceT, Jan 17, 2008.

  1. #1
    How do I make a javascript to redirect to a page, but in the parent window instead of in the frame that it's currently in?
     
    LanceT, Jan 17, 2008 IP
  2. rkquest

    rkquest Well-Known Member

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Hmm.. try..

    
    parent.location.href = 'http://someurl.here';
    
    HTML:
     
    rkquest, Jan 17, 2008 IP
    LanceT likes this.
  3. LanceT

    LanceT Peon

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wow man thanks a lot. I should have figured this out.
     
    LanceT, Jan 17, 2008 IP
  4. Jeyush

    Jeyush Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey rkquest's,

    Thanks a lot buddy, you are the best...

    That one is worked for me...

    Thank u
     
    Jeyush, Sep 2, 2009 IP
  5. sam77am

    sam77am Well-Known Member

    Messages:
    707
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Great...:D
     
    sam77am, Sep 2, 2009 IP