不会啊,我照你的方法,a不会提交啊
<body onkeydown="if(event.keyCode==13)document.all.b.click();">
<form name=form1 action=# method=post onsubmit="alert('??');">
<input type=submit name=a value=a>
<input type=button name=b onclick="alert('!!');" value=b>
</form>
</body>