Prevent a new page from opening

Discussion in 'HTML & Website Design' started by Ripped, Jan 12, 2009.

  1. #1
    I have a frameset with two frames, the top (header) frame is my website while the bottom one is simply a frame of another external website.

    I want to prevent the bottom frame (which is from the external site) from opening a new window when clicking on a hyperlink, I'm talking about hyperlinks with the parameter target="_blank", I want those to open within the same windows i.e within the frame, rather than opening in a new window.
    I want all hyperlinks to be opened in the same window. In other words I want the hyperlinks with the parameter -> target="_blank" to act like they don't have this parameter.

    How can I make this happen?
     
    Ripped, Jan 12, 2009 IP
  2. mds

    mds Active Member

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    If i get you right then do not target="_blank"
     
    mds, Jan 12, 2009 IP
    maldives likes this.
  3. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Yes, but the thing is, the user is surfing an EXTERNAL web site, which I have no control over.

    For example.. the user is on mysite.com and he's surfing google.com in a frame, how can I prevent the framed google.com to opening new windows.
     
    Ripped, Jan 12, 2009 IP