|
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>