Disabling page refresh invalidates both the F5 shortcut and the right click

  • 2020-03-30 01:26:49
  • OfStack

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

Related articles: