<!DOCTYPE html>
<div id="editable" contenteditable="true"
style="outline: none; position: absolute; top: 210px; left: 110px; width: 100px">ABCDE</div>
<script>
onload = function() {
editable.focus();
getSelection().collapse(editable.firstChild, 4);
};
</script>