[JavaScript] 停止 even - Enter


OnKeyDown="processKeyDown()"

function processKeyDown() {
var key = event.keyCode;
if ( key == 9 || key == 13 ) { //key == 9 ==> Tab Key==13==>Enter
window.event.returnValue=false;
}
}

沒有留言: