Learn free online HTML5, javascript, and jquery Tutorials by Examples

Wednesday 14 January 2015

How to disable the F12 key

<script>
document.onkeydown = function(e) {
      // keycode for F5 function
      if (e.keyCode === 116) {
        return false;
      }
     };
</script>

No comments:

Post a Comment