अवलोकन
onsearch इवेंट तब ट्रिगर होता है जब उपयोगकर्ता <input type="search"> में ENTER दबाता है या 'x' बटन क्लिक करता है। यह इवेंट IE, Firefox, Opera में समर्थित नहीं है।
उदाहरण
<!DOCTYPE html> <html> <body> <p>Write what you want to search below and press "ENTER".</p> <input type = "search" id = "newInput" onsearch = "searchFunc()"> <script> function searchFunc() { var a = document.getElementById("newInput"); document.write("Searched = " + a.value); } </script> </body> </html>