Anchor tag and target

Discussion in 'HTML & Website Design' started by palyam, Oct 4, 2006.

  1. #1
    Hi,

    I have two divs in my page placed next to each other by using float:left
    leftside div has vertical navigation bar. When one of the list item(link) is clicked, I want pdf document to open in the adjacent div. How can I say that div as target......

    Code:

    <div id="showme" style="width:200px;float:left">
    <ul style="padding:0;margin:0; list-style:none">
    <li><a href="#">part1</a></li>
    <li><a href="#">part2</a></li>
    <li><a href="#">part3</a></li>
    <li><a href="#">part4</a></li>
    <li><a href="c:\test\hello.pdf">part5</a></li>
    </ul>
    </div>
    <div id="content" style="float:left; border:solid thin green; width:650px; height:500px">hello </div>

    when part 5 is clicked, I want hello.pdf to open (show) in content div tag.

    Is this possible. I appreciate your response.

    Thanks,
    PK
     
    palyam, Oct 4, 2006 IP
  2. fordP

    fordP Peon

    Messages:
    548
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the only way to do that would be to create an iframe there named "content", and then set the target to target="content"
     
    fordP, Oct 4, 2006 IP
  3. palyam

    palyam Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi,

    Thanks for the hint. I really appreciate it. It is working.


    Thanks,
    PK
     
    palyam, Oct 5, 2006 IP