PsyGnosis PsyGnosis - 1 year ago 74
jQuery Question

Lock tab key with javascript?

Hey guys.. How to lock or disable and again the tab key with javascript

Answer
$(document).keydown(function(objEvent) {
    if (objEvent.keyCode == 9) {  //tab pressed
        objEvent.preventDefault(); // stops its action
    }
})