Preferably using JavaScript but would like to hear other ways too
that wasn't the question. The question was to disable the "F5" refresh
RoboShop
2010-05-27 02:32:55
@RoboShop - I thought that was implied in my answer, though it looks like Matt has proved me wrong.
nickf
2010-05-27 02:58:03
+5
A:
This will disable F5, but not the actual refresh function:
document.onkeydown = function (e) {
if (e.keyCode === 116) {
return false;
}
};
On Chrome/XP, at least.
Matt
2010-05-27 02:17:36
I hit the refresh button more often than I hit F5. If a user has just clicked one button, they might be more likely to click another button rather than hit a key.
detly
2010-05-27 02:34:18
+7
A:
- Write a series of browser extensions which remove refresh functionality.
- Require in your Terms of Use that your users install (and use) your extension.
- Prosecute for non-compliance.
- Profit! (?)
Dolph
2010-05-27 02:20:37