Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

go to bottom of page after script

Status
Not open for further replies.

ericaalicen

Programmer
Dec 20, 2001
53
US
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top