add js event that moves cursor to end of input code example
Example: javascript get cursor position without event
var Cursor_X;
var Cursor_Y;
document.addEventListener('mousemove', onMouseUpdate, false);
document.addEventListener('mouseenter', onMouseUpdate, false);
function onMouseUpdate(e){
Cursor_X = e.pageX;
Cursor_Y = e.pageY;
}