zoukankan
html css js c++ java
光标是停在文本框文字的最后 ie
<script language="javascript">
function cc()
{
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="123" onfocus="cc()">
作者:管宇
欢迎转载,请标明出处。
查看全文
相关阅读:
iView
JS
JS
JS
Java
Java
Java
Java
Java
Java
原文地址:https://www.cnblogs.com/winner2009/p/1626101.html
最新文章
ted be grateful
C basics
计时函数 clock() in c and c++
WinExec
window date type
format when printing
Variant OLE automation
VC++ chap13 文档与串行化
vc++ basic chapt1
MFC 创建 excel 链接
热门文章
VC++ excel 2 operations
VC++ operate excel
cursor
memory allocation
afx , afxMessageBox , MessageBox
VC++ chap12 file
Spring
Q&A
随笔
JS
Copyright © 2011-2022 走看看