时间:2021-07-01 10:21:17 帮助过:1人阅读
var formutil = new Object;
formutil.focusOnfirst = function()
{
if(document.forms.length>0){
var item = document.forms[0].elements.length;
for(var i=0;i<item;i++){
if(document.forms[0].elements[i].type !="hidden"){
document.forms[0].elements[i].focus();
return;
}
}
}
}