Jump to content

Ryan Mann

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by Ryan Mann

  1. Yes, but unobtrusive. My code works fine in IE, it's just capturing the event in Firefox.
  2. Input.onkeydown = function(){ if(window.event) { var Key = window.event.keyCode; }; if(event.which) { var Key = event.which; }; if(Key == 13) { alert('enter'); };}; The problem lies with the event.which bit. "event is not defined". I know how to do it regularly, but I am trying to do it unobtrusively. Thank you.
×
×
  • Create New...