If you set the content to nothing, and then set it back to the long stuff, it'll probably reset. You might need to do it when the window is visible, though. I.e. just before hiding or just after showing, set the content to "" and then immediately set it back to the right value.
cheers, barneyb On 7/18/05, Ian Skinner <[EMAIL PROTECTED]> wrote: > I've create a DHTML div layer that users can show or hide as desired. This > layer contains content that is too large to display in the size of the div, > so I have used the overflow: scroll CSS property. This all works well except > for one minor issue. > > When the div is opened then scrolled down a bit then closed, when it is > re-opened the content is at the same scroll position. For this particular > function, it should be back at the top of the content. > > Is there a way to control, I presume with JavaScript, the scroll position > (only really has to work in IE6) of a div, similar to the entire window? > > > -------------- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212133 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54