|Subject:||Adjust window's scroll position depending on which link clicked|
|Posted by:||elektrophy…@yahoo.com (Ethan)|
|Date:||2 Jul 2003|
I have a form that contains sets of checkboxes. Each set has links
above it marked "Check all" and "Uncheck all". The links call
Here's the problem. When you click "Check all" and it's near the
bottom of the page, the page is RELOADED and the user winds up looking
at the top of the page. Sure, all the boxes are properly checked, but
now the user has to scroll back down to where they were before.
It's easy enough to use the window.scrollTo() function, but because of
setting the checkboxes the document is reloaded, so the scrollTo()
function is useless. It scrolls down, but when the document is
reloaded, it instantly pops back up to the top.