<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <base href="http://docs.jquery.com" /> <script src="http://code.jquery.com/jquery-latest.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script> function Fx_Document_OnLoad(){ var obj=document.getElementsByTagName("input");
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="http://docs.jquery.com" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
window.onload = (function(){
$("button").click(function(){alert(this.innerText)});
$("button").keydown(function(e){
if(e.keyCode==13){
$(this).next().focus();
return false;
}
});
});
</script>
<style>
table {
background:#eeeeee;
}
</style>
<style>html,body{border:0; margin:0; padding:0;}</style></head>
<body>
<button>sort</button><button>ddd</button><button>aaa</button>
</body>
</html>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
function Fx_Document_OnLoad(){
var obj=document.getElementsByTagName("input");
for(var i=0;i<obj.length;i++){
obj[i].onkeydown=function(){
if(event.keyCode==13){
event.keyCode = 9;
}
};
}
}
</script>
</head>
<body onload="Fx_Document_OnLoad();">
<input type=text><input type=text><input type=text>
</body>
</html>
{
var e=e||event;
var currKey=e.keyCode||e.which||e.charCode;
if(currKey = 13)
currKey = 9;
}