Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you use two anchor tags with one item?? 1

Status
Not open for further replies.

Bastien

Programmer
May 29, 2000
1,683
CA
HI guys,

I want to know if you can use two anchor tages with one item like below:

<a href=page1.htm target = frame 3>
<a href=page2.htm target = frame 2>
Click Link
</a></a>

is this possible?

or is there are better way? I have three frames on the screen and need to load two frames...

TIA
Bastien
 
Hi Bastien,

I suggest to use javascript, here is an example:
<script>
function updateframe()
{
parent.frame3.location.href=&quot;page1.htm&quot;
parent.frame2.location.href=&quot;page3.htm&quot;
}
</script>

<A href=&quot;javascript:updateframe()&quot;>Click Link</A>


hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
thanks pepperPepsi

that worked great...

bastien
 
All,

call me stupid, but if you want to update those two frames together all the time, why not include them in a separate frameset ? The anchor links to this frameset, loading both frames at the same time. It might even be a tad quicker ...

Regards,
Ronald.
 
Please refer to the thread nearby (two frames by one click).
How many browser´s &quot;back&quot; are necessary ?
This problem is not solved so far. ---G.Hoffmann
 
Pepper, I gave you a star for that one! A simple and elegant solution, clearly explained. Good job!
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top