Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: editor/reftests/reftest.list
<!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>