-
Mar 6th, 2012, 11:38 PM
#1
Thread Starter
Fanatic Member
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>
-
Mar 7th, 2012, 12:03 PM
#2
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.
-
Mar 7th, 2012, 10:13 PM
#3
Thread Starter
Fanatic Member
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?
-
Mar 7th, 2012, 10:36 PM
#4
Thread Starter
Fanatic Member
Re: How to target the link in adjacent frame
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|