文本域获得焦点置到内容的最后
//x为文本域对象
function f_setCursorPos(x){
var txtRange = x.createTextRange();
txtRange.moveStart("character",x.value.length);
txtRange.moveEnd("character",0);
txtRange.select();
}
济南网站建设 济南网站制作wwww.qilubang.com
//x为文本域对象
function f_setCursorPos(x){
var txtRange = x.createTextRange();
txtRange.moveStart("character",x.value.length);
txtRange.moveEnd("character",0);
txtRange.select();
}