Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript press tab key

window.onkeypress = function(e) {
    if (e.which == 13) {
       e.preventDefault();
       var nextInput = inputs.get(inputs.index(document.activeElement) + 1);
       if (nextInput) {
          nextInput.focus();
       }
    }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #press #tab #key
ADD COMMENT
Topic
Name
5+5 =