summaryrefslogtreecommitdiffstats
path: root/editor/reftests/caret_on_textarea_lastline-ref.html
blob: 9c1040255e4ccf4ddef3081da59a71dc732eb735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
<body onload="loaded()">
<script>
  function loaded() {
    var t = document.querySelector('textarea');
    t.selectionStart = t.selectionEnd = t.value.length;
    t.focus();
  }
</script>
<textarea>foo</textarea>
</body>
</html>