/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
---- HTML ----- <input type="text" onKeyPress="SearchName(event)"> ---- JS ----- <script type="text/javascript"> function SearchName(e) { alert(e.keyCode); } </script>