open external link in the main frame of new page

Discussion in 'JavaScript' started by yazzou, Oct 20, 2008.

  1. #1
    Hello,
    I want to know if there is a way to open external link in a new page containing a framset.
    I have :
    1- pageA.htm : contains an external link
    2- pageB.htm : contains 2 frames header (frame1) and main(frame2)

    I want to open the external link of pageA.htm in the main frame of pageB.htm
    Thanks for any suggestion
     
    yazzou, Oct 20, 2008 IP
  2. Bind

    Bind Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    page A would have to be part of the frameset that page b is for frame targeted hrefs to work.

    in which case the following frame targeted href would load into the main(frame2) of page B, so long as the frame name is main ... if not change the bold value of the line below to the exact frame name of page B's main(frame2):

    <a href="http://site.com/external_link.html" target="main">external link</a>

    if you are not sure what this means, here is a live example of what i am talking about ... you can view source code of each framed page for specifics .. the links are on the left frame that opens in the right frame:

    digitalpointforumhelp.no-ip.org/dp_forum_threads/basic_frames_layout/

    of course, if the owner of the page you are trying to frame has a frame breaker script, then your attmpts at framing will fail.
     
    Bind, Oct 20, 2008 IP
  3. Bind

    Bind Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    or a child of one of them.
     
    Bind, Oct 21, 2008 IP