<script>
function doe(){
window.focus();
window.getSelection().collapse(document.body, 0);
}
setTimeout(doe,50);
setTimeout(function() {window.location.reload()}, 200);
</script>
<span contenteditable="true"></span>