Posted By

erraja_07 on 11/15/11


Tagged


Versions (?)

JS - Event Handler - supported in all browser


 / Published in: JavaScript
 

  1. ---- HTML -----
  2. <input type="text" onKeyPress="SearchName(event)">
  3.  
  4. ---- JS -----
  5. <script type="text/javascript">
  6. function SearchName(e) {
  7. alert(e.keyCode);
  8. }
  9. </script>

Report this snippet  

You need to login to post a comment.