1. you can avoid refreshing page when user press the F5 using Java Script(Using Key Code of the F5 button).
document.attachEvent("onkeydown", my_onkeydown_handler);
function my_onkeydown_handler() {
switch (event.keyCode) {
case 116 :
event.returnValue = false;
event.keyCode = 0;
window.status = "We have disabled F5";
break;
}
}
2. you can avoid refreshing page when user click the right mouse button and selects the Reload option by Java script(We can find the mouse button in JS)
Restrict RIGHT CLICK.
3. To avoid the browser refresh(Need to open the page in pop-up).
These are not solutions. better tell me reason to avoid refresh. may You have a design flaw with your page.
Thanks
Karthik P