Skip to content

How to disable full keyboard keys using javascript or jquery?

I want to disable full key boards keys using Javascript or jQuery.

And also, is it possible to disable to keyboard using PHP script?

Answer

try this

document.onkeydown = function (e) {
        return false;
}

for specific area try this

$(".class").keydown(function(event) { 
    return false;
});