Take the 2-minute tour ×  I have a table within a div with a set
height, when the table is bigger than the div the scroll-y bar
appear. The problem is that if the scroll bar of the div is at
the top, leaving other row at the bottom hidden, and the user
press the button to add a new row, this row is added at the
bottom of the table, therefore you can't see it.  Is there
anyway with javascript, vbscript, or css to set focus to the row
it's been created so it is visible when added?  This is the code
where the function to add a new row would be called.     strRow
= strRow + "<div>         <input ID='AddRowTableNew_" +
cstr(newrow.id) + "' type='button'          value='Add New Row'
onclick='vbscript:AddNewRow 0," + cstr(newRow.id)+ "'/>  Any
help would be appreciated.  PD: I would need this to be on
VBScript or JavaScript, No JQuery please.   share|improve this
question jQuery is JavaScript itself. –  rahul Feb 3 '10 at
10:41 add comment  2 Answers  up vote 4 down vote accepted  Try
Element.scrollIntoView