set href targets in frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lars Vatland

    set href targets in frame

    Hello, if i have

    frameset
    frame name=A
    frame name=B

    How can i target all links in A to B?
    Via a script in the frameset?
    (i can only code the frameset file, not the frames)
    Maybe something like:
    frames['A'].window.locatio n.target = "B"; ??

    And 2) how to target only the files, not directories, in A to B?

    (The purpose is to use the apache-generated index-file as frame A and
    target links in it to B).


    Thanks for any help,
    LV
    -please cc email


  • Stuart Palmer

    #2
    Re: set href targets in frame

    Have you tried ignoring the JS aspect and just set the a href target link to
    be the target frame?
    I think that should work. <a href="link1.htm l" target="A">Link A</a> and <a
    href="link2.htm l" target="B">Link B</a> (I have not actually tried this code
    in a frammed enviroment.

    Think that should work, I have done simeple html frame links link before I
    knew any JS. When messing with frames I don't think you need to use JS,
    think you may be making it more difficult than you need to.

    Hope that helps

    Stu

    "Lars Vatland" <d20030219@yaho o.no> wrote in message
    news:1103_10667 60047@news.onli ne.no...[color=blue]
    > Hello, if i have
    >
    > frameset
    > frame name=A
    > frame name=B
    >
    > How can i target all links in A to B?
    > Via a script in the frameset?
    > (i can only code the frameset file, not the frames)
    > Maybe something like:
    > frames['A'].window.locatio n.target = "B"; ??
    >
    > And 2) how to target only the files, not directories, in A to B?
    >
    > (The purpose is to use the apache-generated index-file as frame A and
    > target links in it to B).
    >
    >
    > Thanks for any help,
    > LV
    > -please cc email
    >
    >[/color]


    Comment

    Working...