HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>'myFunction' is triggered when you press a key inside the input field.</p> <input type="text" onkeydown="myFunction()"> <script> function myFunction(){ alert("You pressed a key inside the input field"); } </script> </body> </html>
OUTPUT
×

Save as Private