hi,
i am using below code to disable f5 button
<script>
window.history.forward(1);
document.attachEvent("onkeydown", my_onkeydown_handler);
function my_onkeydown_handler()
{
switch (event.keyCode)
{
There are some special keys (most of the functions and combination of) which, even if they can be captured in javascript, can not be stopped/disabled. Some of them are controlled only by the Operating System. For instance, for a Windows PC: Alt+F4. or CTRL+ALT+DELETE.
It is absolutely logical. You can not prevent the owner of a PC from closing his browser, can you?
Bookmarks