Presione el botón Enter Enter
searchInput.onkeyup = function (e) {
if (e.key === 'Enter') {
searchBtn.click();
}
}
Arno Deceuninck
searchInput.onkeyup = function (e) {
if (e.key === 'Enter') {
searchBtn.click();
}
}
<input onkeyup="if(event.keyCode===13){submit.click()}"><button id="submit">submit</button>