Disable F5 Key (keyboard button) and browser refresh using JavaScript.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 199
Write below code:-
<body>
<script type = "text/javascript">
window.onload = function()
{
document.onkeydown = function(e)
{
return (e.which || e.keyCode) != 116;
};
}
</script>
</body>

Comments or Responses

Login to post response