Sign in
mojo
/
mojo-tools
/
64a4a80012dbfd6ffdc1c50a922cebca36dae341
/
.
/
sky
/
engine
/
web
/
tests
/
data
/
select_range_textarea.html
blob: 4cd9adce31f19063fa9ef1611cbb286c442cbc41 [
file
] [
log
] [
blame
]
<!DOCTYPE html>
<html>
<body>
<textarea
id
=
'target'
>
simple text
</textarea>
<script>
var
textarea
=
document
.
getElementById
(
'target'
);
textarea
.
focus
();
textarea
.
setSelectionRange
(
0
,
textarea
.
value
.
length
);
</script>
</body>
</html>