Click to See Complete Forum and Search --> : variables & anchor - document.location combination


johannesburgboy
06-17-2003, 07:40 AM
please help!

i need to redirect a page that includes variables and an href to scroll down to.

so in the line below i am trying to redirect the client to newpage?var1="+var1 etc

but i also want the newpage to scroll down to the <a name="scrollTo"></a> tage.

document.location.href = "newpage.asp#scrollTo"

how can i combine it (if it is possible)

document.location.href = "newpage.asp?var1="+var1 + "&var2="+var2 + "#scrollTo

or maybe

document.location = "newpage.asp?var1="+var1 + "&var2="+var2 +href="#scrollTo

i dunno. please help