SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iframe link to open another iframe

    My page contains an iframe (iframe1); within the text in that iframe I have other links, and I want the content behind those links to appear in the 2nd iframe (iframe2) below the links. Help!
    Attached Images Attached Images

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    add:

    Code:
    target="frame_name"
    to the links that you want to open in a certain frame.

    So for example this should work for you:

    Code:
    <a href="" title="" target="iframe2">Some Link</a>
    Hope it helps

  3. #3
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I should have indicated in my first post -- I do have the targets set for each iframe location.

    first iframe
    <iframe src="description.html" name="Description" height="100%" width="100%"></iframe>

    second iframe
    <iframe src="description2.html" name="Description2" height="100%" width="100%"></iframe>

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Since your iframes name is Description1 and Description2 simply change it to:

    Code:
    target="Description2"

  5. #5
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the info -- I figured out the problem - the lightbulb went off! I needed to target the first iframe in the second instance. Confusing, yes, but it's working!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •