Disable F5 on php page

function disable_f5(e)
{
if ((e.which || e.keyCode) == 116)
{
e.preventDefault();
}
}
$(document).ready(function(){
$(document).bind("keydown", disable_f5);    
});