How to target the link in adjacent frame-VBForums
Results 1 to 4 of 4

Thread: How to target the link in adjacent frame

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    908

    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>

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,501

    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    908

    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?

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    908

    Re: How to target the link in adjacent frame

    Quote Originally Posted by SambaNeko View Post
    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.