Links open in another window

Discussion in 'PHP' started by monicao, Sep 22, 2007.

  1. #1
    Hello, I've got a site (PHP and MySql), that was made with frames, but I've decide to get rid of frames and I've made this site through cells table and CSS. But now I've got a big problem: any link I click on my menu (from the left), the new page opens in a new window and I want that the new page to be opened in the same window, the initial window.
    What should I do for this? I want that browser opens new pages of my site in the same window. Thanks!
     
    monicao, Sep 22, 2007 IP
  2. k2pi

    k2pi Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    look in your <a> code, you might have a target="_blank".

    take off the target attribute.
     
    k2pi, Sep 22, 2007 IP
  3. bubbles19518

    bubbles19518 Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    To clarify the target attribute is used to say which frame the link should open in. If you don't have any frames on your site it will open in a new window with the target name. Then if you open another window with that same target name it will take the place of the site that was there originally. Just remove the target attribute from your links to solve this.
     
    bubbles19518, Sep 22, 2007 IP
  4. ready2work

    ready2work Guest

    Best Answers:
    0
    #4
    As said by k2pi, removing the target attribute would do that for you.

    Better learn about the other values available for the target attribute (_top, _self, _parent). That would help you in your future. ;)
     
    ready2work, Sep 24, 2007 IP