Hi there,
I have a table with fixed header and footer, but scrollable table body that is defined within a <div> tag as follows:
<div style="height:450px; overflow: auto;">
<TABLE>
.......
</TABLE>
</DIV>
What i would like to achieve is to be able to automatically scroll the table body in this section from JavaScript. I can do it with an entire page by using:
window.scrollTo(0,y);
within a loop, but how do i scroll just the <DIV> section rather than the whole page?
Thanks in advance
I have a table with fixed header and footer, but scrollable table body that is defined within a <div> tag as follows:
<div style="height:450px; overflow: auto;">
<TABLE>
.......
</TABLE>
</DIV>
What i would like to achieve is to be able to automatically scroll the table body in this section from JavaScript. I can do it with an entire page by using:
window.scrollTo(0,y);
within a loop, but how do i scroll just the <DIV> section rather than the whole page?
Thanks in advance