Click to See Complete Forum and Search --> : Div tags as targets for hyperlinks


Stephan
01-05-2008, 06:26 PM
Anyone got any clues?

Here's basically what I'm doing, although this isn't the actual code:

<div id="navbar"><a href=example.htm" target="otherDiv">Link Text Lives Here</a> </div>

<div id="otherDiv">This is where the linked .htm file should appear</div>


So, this doesn't seem to be working. What should I do?

kiwibrit
01-06-2008, 04:38 AM
Why not


<div id="navbar"><a href="#sample">Link Text Lives Here</a> </div>
------------------------------------------------------------------
<p><a name="sample"></a>Your sample text.</p>


Assuming your sample text is on the same page, of course.