Guest User

Untitled

a guest
Nov 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. .addEventListener("keypress", runOnEnter);
  2.  
  3. function runOnEnter(e) {
  4. if (e.keyCode == 13) {
  5. alert('hi');
  6. }
  7. }
Add Comment
Please, Sign In to add comment