You need to focus the element and set the position of the carriage
This JSFiddle shows you how it works. jQuery was used for simplicity in this example, but it can be completely omitted if you so wish. A function is setSelectionRangein any case a DOM function.
In general, he does this:
input.focus();
input.setSelectionRange(inputValueLength, inputValueLength);
DOM ( jQuery).
?
, Chrome, , , . - :
input.setSelectionRange(1000,1000);
( 1000 .:)
. IE8 . . IE .