Here, - catch this:
function disableRefresh(netscape){
var F5=(netscape||event).keyCode;
if(F5==116){
if(!netscape){event.keyCode=0}
return false;
}
}
document.onkeydown=document.onkeypress=disableRefresh;
//IE, FX, OP, ++ Troy III
p.s.: adding 100KB of JS code for a simple task is pretty much expensive; Especially when you are forced to include all of that junk just to be able to expand your script functionality to another less than 35% of existing browsers.
I personally hate pages forcing me to download 100KB++ so I could see some silly rollover effect.