I have a form with two text boxes, one select drop down and one radio button. When the enter key is pressed, I want
form
Here is how you can do it using JavaScript:
//in your **popup.js** file just use this function var input = document.getElementById("textSearch"); input.addEventListener("keyup", function(event) { event.preventDefault(); if (event.keyCode === 13) { alert("yes it works,I'm happy "); } });