Archive for October, 2008

Set focus @end of textbox

Tuesday, October 28th, 2008

function SetEnd (controlObj)
{
if (controlObj.createTextRange)
{
var FieldRange = controlObj.createTextRange();
FieldRange.moveStart(‘character’, controlObj.value.length);
FieldRange.collapse();
FieldRange.select();
}
}