E
Ethan
I have a form that contains sets of checkboxes. Each set has links
above it marked "Check all" and "Uncheck all". The links call
JavaScript functions.
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.
Any solutions?
Thanks,
Ethan
above it marked "Check all" and "Uncheck all". The links call
JavaScript functions.
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.
Any solutions?
Thanks,
Ethan