taufook
3/27/2018 - 2:31 AM

Enter to submit

Press Enter key to submit the form.

document.getElementById("keyword").onkeydown = function(e){
    if(e.keyCode == 13){
      // Submit
    }
}