摘要: script language="javascript" function setFocus() { var obj = event.srcElement; var txt =obj.createTextRange(); txt.moveStart('character',obj.value.length); txt.collapse(true); txt.select(); } /script input type="text" value="abcdefg123456789" onfocus="setFocus()" 阅读全文
posted @ 2011-01-28 10:02 雨藤 阅读(4552) 评论(0) 推荐(0) 编辑