按回车键呼应已函数

按回车键相应已函数body onkeydownonEnterPress()/body?相应的js代码function onEnterPress(){if(

按回车键相应已函数

<body onkeydown="onEnterPress();"></body>

?相应的js代码

function onEnterPress(){if(event.keyCode ==13){doLogin();}}

?