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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

overflow:scroll¦auto push event with javascript

Status
Not open for further replies.

cfk

Programmer
Jan 16, 2002
60
GB
I'm using

<div style=&quot;height:500px;width:500px;overflow:auto;&quot;>
...CODE...
</div>

When I add an onscroll=&quot;alert();&quot; I get the alert box.

However, when I reference the div via an ID and try
to make it scroll I get an &quot;object doesn't support this property or method&quot;.

I've tried
document.all.divid.scroll(x,y);
scrollTo(x,y);
scrollBy(x,y);

Does any one have any ideas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top