Same from above with little modification
function focusMe() {_x000D_
var rowpos = $('#FocusME').position();_x000D_
rowpos.top = rowpos.top - 30;_x000D_
$('#container').scrollTop(rowpos.top);_x000D_
}
_x000D_
<html>_x000D_
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>_x000D_
<body>_x000D_
<input type="button" onclick="focusMe()" value="focus">_x000D_
<div id="container" style="max-height:200px;overflow:scroll;">_x000D_
<table>_x000D_
<tr>_x000D_
<td>1</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>2</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>3</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>4</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>5</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>6</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>7</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>8</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>9</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr id="FocusME">_x000D_
<td>10</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>11</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>12</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>13</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>14</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>15</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>16</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>17</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>18</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>19</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
<tr>_x000D_
<td>20</td>_x000D_
<td></td>_x000D_
</tr>_x000D_
</table>_x000D_
</div>_x000D_
</body>_x000D_
_x000D_
</html>
_x000D_