Tuesday, July 29, 2014

Disable refresh key(F5)

Use the below code to disable your F5 key on browser:-

document.onkeydown = function() {
        if(event.keyCode == 116) {
                event.returnValue = false;
                event.keyCode = 0;
                return false;
               }
    }



Put this code simply in the script.(NOTE:- Works only in IE).

No comments:

Post a Comment