Enter key press event in JavaScript
home
Run
screen_rotation
fullscreen
cloud_download
<html> <head> <title>Javascript Demo</title> <script type='text/javascript'> function checkEnterClick(e){ if(e.keyCode == 13){ alert("You Have Pressed Enter Key."); } } </script> </head> <body> Press Enter Button in text box <input type='text' onkeypress='checkEnterClick(event)' name='test'> </body> </html>
<html> <head> <title>Javascript Demo</title> <script type='text/javascript'> function checkEnterClick(e){ if(e.keyCode == 13){ alert("You Have Pressed Enter Key."); } } </script> </head> <body> Press Enter Button in text box <input type='text' onkeypress='checkEnterClick(event)' name='test'> </body> </html>
Copyrights@tutorialsplane.com