Mueva el cursor al final de la línea JavaScript

<input type="text" id="yourId" onfocus=" let value = this.value; this.value = null; this.value=value" name="nameYouWant" class="yourClass" value="yourValue" placeholder="yourPlaceholder...">
<script>
    document.getElementById("yourId").focus()
</script>
Man From Earth