named anchors within a div

liunx

Guest
dear people<br />
<br />
Thinking using named anchors was quite simple, I suddenly bumped into an unexpected problem.<br />
<br />
I have a div with an automatic overflow. This div has a vertical scroller because of the amount of text. At the middle of the page there's a button. When that button is clicked, the scroller should be transfered to the top of this div. Nothing happens though...<br />
<br />
it's like this:<br />
<br />
<div class="news"><br />
<a name="top"></a><br />
<p class="plain"><br />
text<br />
text<br />
text<br />
text<br />
etc...<br />
</p><br />
<br />
<p><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#top">back to top</a><br />
</p><br />
</div><br />
<br />
This doesn't work.<br />
I hope I explained myself clearly and someone has a solution, for I did not find any on the internet nor here...<br />
<br />
thanks for your help and comments!<br />
Maarten/MeanRat<!--content-->It does work and I assume you do know it's not necessary to use a hyperlink as the destination for the fragment identifier.<!--content-->It doesn't work in IE5 for the Mac. Ive got it working in an Iframe though. THanks for the reply.<br />
<br />
Maarten/MeanRat<!--content-->
 
Back
Top