Hi,
I’m having some trouble with scrollbars and loading pages.
When the user clicks on buttons, content loads into another div, using javascript/iframes to call separate html files. That all works fine. But if you scroll down the loaded content, and then click another link, the new content loaded will be partially scrolled down already, and I would like it to load at the TOP!
I have tried a few solutions to no avail:
1. In the html files that are called when the user clicks the links, I have tried [CODE]<body onLoad=”window.scrollTo(0,0)2. In the calling javascript (the link you click) I have tried adding an anchor:
[CODE]<a href=”javascript:loadSource(‘right’,null,’mandatorypreworkshopinfo.html#top’)”>
and added the
to the top of the html file being called. That has no effect either.[/CODE][CODE]<a name=”top”></a>
I have spent hours on this already. Please help if you can ?
Thanks.
-Rick