function document.onkeydown(){
if(event.keyCode==13)
event.keyCode=9;
}
相当于敲下回车键替换成Tab键,如果需要继续判断的话 可以使用
document.activeElement.type==”button” 取得获得焦点的控件
if(event.keyCode==13)
event.keyCode=9;
}
相当于敲下回车键替换成Tab键,如果需要继续判断的话 可以使用
document.activeElement.type==”button” 取得获得焦点的控件