PsyGnosis PsyGnosis - 5 months ago 16
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
    }
})
Comments