RexHeadlong
Programmer
Hey, all.
The short version: Is there a Netscape 6+ equivalent for the IE scrollIntoView() function?
The long version: I have to support both NN6+ and IE5+. I have a table with lots of rows in it. The table is in a <DIV style="overflow:auto">. I want to force a given row to be scrolled to the top of the page when I load the page. The following code works great in IE:
<HTML>
<HEAD></HEAD>
<BODY onLoad="document.all.row101.scrollIntoView(true)">
... a bunch of content here ...
<DIV style="overflow:auto; width=100%; height:400px; margin:0px">
<TABLE width="100%">
<THEAD><TR><TH>my table header</TH></TR></THEAD>
<TBODY>
<TR id="row001"><TD>row 1 text</TD></TR>
... lots more rows here ...
<TR id="row101"><TD>row 101 text</TD></TR>
... more rows here ...
</TBODY>
</TABLE>
</DIV>
</BODY>
So, is there a NN equivalent to the scrollIntoView function, or is there an alternate technique to force the scroll?
Thanks for any help!
The short version: Is there a Netscape 6+ equivalent for the IE scrollIntoView() function?
The long version: I have to support both NN6+ and IE5+. I have a table with lots of rows in it. The table is in a <DIV style="overflow:auto">. I want to force a given row to be scrolled to the top of the page when I load the page. The following code works great in IE:
<HTML>
<HEAD></HEAD>
<BODY onLoad="document.all.row101.scrollIntoView(true)">
... a bunch of content here ...
<DIV style="overflow:auto; width=100%; height:400px; margin:0px">
<TABLE width="100%">
<THEAD><TR><TH>my table header</TH></TR></THEAD>
<TBODY>
<TR id="row001"><TD>row 1 text</TD></TR>
... lots more rows here ...
<TR id="row101"><TD>row 101 text</TD></TR>
... more rows here ...
</TBODY>
</TABLE>
</DIV>
</BODY>
So, is there a NN equivalent to the scrollIntoView function, or is there an alternate technique to force the scroll?
Thanks for any help!