<script language="javascript">
function aft()
{
var e = event.srcElement;
var r =e.createTextRange();
r.moveStart('character',e.value.length);
r.collapse(true);
r.select();
}
</script>
<input type=text name=text1 value="字符串之后" onfocus="aft()">
---------------------------------------------------------------
<input onfocus="after2(this)" value="在字符串的后门">
<script language=javascript>
function after2(obj)
{
var rng=obj.createTextRange()
rng.setEndPoint("StartToEnd", rng);
rng.select();
}
</script>
中国足彩网信息请查看IT技术专栏