Whing Dela Cruz
asked on
Disable F5
Hi Experts, codes below are able to disable F5 or page refresh. However, I'm looking for a solution that the F5 will totally disable in the entire window. Any help please!
<!DOCTYPE html>
<html>
<body>
<input type="text" size="5" onkeydown="uniKeyCode(event)">
<script>
function uniKeyCode(event) {
var key = event.keyCode;
if (key == "116")
{
event.preventDefault();
alert("you press f5");
return false;
}
}
</script>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
ASKER