My first google hit for javascript scroll position gave me this: To save the last scroll positions (horizontal and vertical): var hscroll = (document.all ? document.scrollLeft : window.pageXOffset); var vscroll = (document.all ? document.scrollTop : window.pageYOffset); then when you swap in the new form just scroll to those positions: window.scrollTo(hscroll, vscroll); So, you need to use the values being used in this code, to offset your menu by the scrollbar position.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.