window.open to open in same window same tab

Discussion in 'JavaScript' started by learnerabn, Sep 23, 2010.

  1. #1
    hi all,

    In my site i'm having some buttons for linking.
    <a href> tag works fine in firefox but in ie its not working.
    so i used window.open for linking.
    but the problem here is the link is opened in seperate window in ie and in firefox its opened in seperate tab i want that to open in same window and in same tab....

    Can any one help me...

    Thanks in advance....
     
    learnerabn, Sep 23, 2010 IP
  2. maneetpuri

    maneetpuri Active Member

    Messages:
    152
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Hi,

    You will have to define the self or parent in the target attribute of window.open to open it in the same window.


    Cheers,

    ~Maneet
     
    maneetpuri, Sep 23, 2010 IP
  3. GFX_Lover

    GFX_Lover Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This will work,

    target="_self"
     
    GFX_Lover, Oct 3, 2010 IP
  4. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you guys...
     
    learnerabn, Oct 11, 2010 IP