How to lock or disable and again the tab key with javascript?
$(document).keydown(function(objEvent) { if (objEvent.keyCode == 9) { //tab pressed objEvent.preventDefault(); // stops its action } })
2.1m questions
2.1m answers
60 comments
57.0k users