代码如下:
<span style=font-family:times new roman;font-size:18px;><script type=text/javascript>
//将光标聚焦在文本最后
function cursorend(){
var e = event.srcelement;
var r = e.createtextrange();
r.movestart('character',e.value.length);
r.collapse(true);
r.select();
}
</script>
<input type=text name=test value=test onfocus=cursorend()></span>
中国足彩网信息请查看IT技术专栏
2025国考·省考课程试听报名