471,075 Members | 1,121 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

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.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
Jul 20 '05 #1
1 4129
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

"Lars Vatland" <d2*******@yahoo.no> wrote in message
news:11*************@news.online.no...
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

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tim Johnson | last post: by
reply views Thread by Nina | last post: by
4 posts views Thread by ChrisC | last post: by
6 posts views Thread by August Karlstrom | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.