Click to See Complete Forum and Search --> : scrolling to the top


Webskater
08-29-2003, 08:35 AM
I have a page with an iframe on it. When I click a link on the page it points to a bookmark in the iframe. The text in the iframe scrolls so that the bookmark is displayed. But, depending where you are on the page (in the iframe) the text you should be looking at (where the bookmark is) might be at the top of the iframe, at the bottom or somewhere in the middle. Can I force the bookmark to display always at the top of the iframe?
Thanks for any help.

Gollum
08-29-2003, 10:03 AM
Have you considered using anchors instead?

you can create an anchor by including the tag:
<a name="anchorname"></a>
in your html page. And you can navigate to it by going to yourhtmlpage.html#anchorname. Generally it will put the anchor at the top of the page (except where it's close to the bottom).