Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8">
<input type=text value="الخير" autofocus>
<script>
onload = () => {
let input = document.querySelector("input");
input.selectionStart = input.selectionEnd = input.value.length;
input.focus();
}
</script>