Click to See Complete Forum and Search --> : scrolling iframe


Webskater
08-20-2003, 06:14 AM
I have some links at the top of a page and an iframe below. Can anyone tell me how, having clicked a link at the top of the page that points to a bookmark in the iframe, I can get the iframe to scroll to display the bookmark so that the page containing the iframe stays still.
At the moment the whole page scrolls as well as the iframe.
<body>
<table>
<tr>
<td>
<a target="listframe"href="list.asp#120">gotolist</a>
</td>
</tr>
<tr>
<td><iframe src=list.asp></iframe></td>
</tr>
</table>
Thanks for any help.

DaveSW
08-20-2003, 07:25 AM
your entire page will scroll to get the iframe you requested at the top of the viewport. It will then scroll the iframe to get the anchor to the top of the iframe. If you don't have anything underneath, that would stop it.

conquesimo
06-29-2009, 02:39 PM
See solution here:

http://www.webdeveloper.com/forum/showthread.php?t=212032