<input type="text" onfocus="selReset(1, this)" onblur="selReset(0)" />
function selReset(a, b) { if(a) selInt = setInterval(function() { b.selectionStart = 0; },10); else clearInterval(selInt); }