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!

scrollbar

Status
Not open for further replies.

huvet

Programmer
Jul 9, 2002
1
BE
Hi,

I want to set the value of my scrollbar to 255. It doesn't work with the instruction window.scrollTo(0,255). Can someone help me ?
mhuvet@vub.ac.be.
Thanks.
 
why do you not like the scrollTo Method?

A solution but not very professionally is This:



in the position that you want you insert a form and a input type text with the name that you want to assign.

this element must to have a style: width:0;height:0;

in the onload:

document.nameForm.nameInputTypeText.focus().

Orrible solution but is a solution :)

I think that it's good to use the scrollTo

bye
 
the method works fine for me
i read in my book that it is only any good for nav4+ or ie5+
you could try changing scrollTo with scroll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top