seek cursor to the end of the <p> element js code example Example: js vanilla set cursor to edit text on click element.focus()