How to target the link in adjacent frame
Hi, I have a frameset in html code, and have 2 different pages, frame1.html and frame2.html as sources of frameset right. i made HOME, MISSION, OFFICES hyper links in the frame1.html and want to see its result in the fram2.html. I use the following code
<a href = "mission.html" = target = "_top"> MISSION </a>
I have change the code with all four _top, _parent, _self, _blank but i'm not getting my result so please guide me with this.
HERE IS THE MAIN FRAME SOURCE CODE.
<html>
<frameset cols = "20%, 80%">
<frame src = "frame1.html">
<frame src = "frame2.html">
</frameset>
</html>
Re: How to target the link in adjacent frame
Give a "name" to any frame that you want to target:
Code:
<frame src="frame2.html" name="frame2">
...then use that name as the target of any link that you want to appear in it:
Code:
<a href="mission.html" target="frame2"> MISSION </a>
As goes the standard adage: frames are not good practice and are best avoided entirely.
Re: How to target the link in adjacent frame
thank you samba, i will try it, but let me ask you something, that if don't use frame, then what is best alternatives?
Re: How to target the link in adjacent frame
Quote:
Originally Posted by
SambaNeko
Give a "name" to any frame that you want to target:
Code:
<frame src="frame2.html" name="frame2">
...then use that name as the target of any link that you want to appear in it:
Code:
<a href="mission.html" target="frame2"> MISSION </a>
As goes the standard adage: frames are not good practice and are best avoided entirely.
Yeah Samba, i did the same, and gave the page name in target value, but still when i click on link so it open in a new tab in mozila firefox.