[Javascript] Scrollable table - scroll a cell into view

James Conley Conleyj at kubota-kma.com
Tue May 30 09:44:11 CDT 2006


If I have a scrollable HTML table with X columns and Y rows
[overflow:auto] how can I "scroll" a particular cell into the visible
portion of the screen? 

Will calling .focus() on an TABLE cell bring it into visible portion of
the screen? 
Or do I want to set the scroll position via ScrollTop/ScrollLeft? What
would I set it to?
Would setting the table's ScrollLeft property to the value of the cell's
ScrollLeft do the trick?

james



More information about the Javascript mailing list