ericaalicen
Programmer
I have a "check all" link at the bottom of a long page. When you click it, you're returned to the top of the page. I need to return the user to the bottom of the page once the script has run, and I've tried a number of different ways of doing this from examples online to no avail. Can anyone help?
Code:
<script>
function CheckAll()
{
count = document.form.parts.length;
for (i=0; i < count; i++)
{
if(document.form.parts[i].checked == 1)
{document.form.parts[i].checked = 1; }
else {document.form.parts[i].checked = 1;}
}
}
</script>
[code]