Tuesday, May 12, 2015

F12 Key Press JavaScript Validation

Are you looking for the JavaScript Code to Disable User from pressing F12 Key then this article will surely help you achieve this.

JavaScript Code:


document.onkeydown = function (event)
{
// alert(event.keyCode);
event = (event || window.event);
if (event.keyCode == 123 || event.keyCode == 18)
{
// alert("This function is disabled here");
return false;
}
}

No comments :

Post a Comment