set href targets in frame

L

Lars Vatland

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.location.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
 
S

Stuart Palmer

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.html" target="A">LinkA</a> and <a
href="link2.html" target="B">LinkB</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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top