I have an input textbox in HTML, and I would like that when I press ENTER on the specific input, it performs a function:
<input type="text" placeholder="English" id="englinput" onkeypress="enterEvent()">
How should my javascript code look to perform something like this:
function enterEvent() {
document.getElementById('btnport').style.visibility = 'visible';
document.getElementById('btnstart').style.visibility = 'hidden';
}