[Javascript] Scrollable table - scroll a cell into view
Matt Barton
javascript at mattbarton.org
Tue May 30 09:59:21 CDT 2006
element.scrollIntoView ([showAtTop]);
Where showAtTop is an optional boolean - true means that the element
will be displayed at the top of the viewable area, false at the bottom.
Matt.
James Conley wrote:
> 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
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list