<textarea name="ta1" rows=5 cols=50>
aaaaaaaaaaaaaa
cccccccccc
dddddddddddd
fffffffffffff
</textarea>
<input value="1" name="line">
<input type=button onclick="gol(parseint(line.value));" value="go">
<script>
function gol(line)
{
ta1.focus();
var v=ta1.value.split('\n');
ch=0;
for(var i=0;i<line-1;i++)
ch+=v[i].length;
var o=ta1.createtextrange();
o.move("character",ch);
o.select();
}
</script>