try this if you just want to disable the F5 and Backspace functionality:
keyCode 116 ==> F5 key
keyCode 8 ==> Backspace
function disableF5BackSpace(e){
evt = e || window.event;
if(evt.keyCode == 116 || evt.keyCode == 8){
evt.preventDefault();
}
}
Hope this helps.