After adding content to the textea control, how to move its scrollbar to the bottom?
1st floor
Does anyone know?
2nd floor
<textarea name="textarea" cols="80" rows="10" style="overflow-y:hidden; overflow-x:scroll;"></textarea>
3rd floor
<body>
<textarea rows=10 cols=20 >ksaljdf
fffffffff
ffffff
ffffff
ffffffff
fffff
fffffffffff
fffffffffff
ffffffffff
ffffffffff
fffffffff
fffffffff</textarea>
<br>
<input type="button" value="set" onclick="=">
4th floor
//It can also be achieved by moving the cursor
<script>
function setCursor(){
range=(); //demo is the id of textarea
(false);
('character',0);
();
}
</script>
1st floor
Does anyone know?
2nd floor
<textarea name="textarea" cols="80" rows="10" style="overflow-y:hidden; overflow-x:scroll;"></textarea>
3rd floor
<body>
<textarea rows=10 cols=20 >ksaljdf
fffffffff
ffffff
ffffff
ffffffff
fffff
fffffffffff
fffffffffff
ffffffffff
ffffffffff
fffffffff
fffffffff</textarea>
<br>
<input type="button" value="set" onclick="=">
4th floor
//It can also be achieved by moving the cursor
<script>
function setCursor(){
range=(); //demo is the id of textarea
(false);
('character',0);
();
}
</script>