Demo
Disable F5 Key (Button) and browser refresh using JavaScript or jQuery

Click this page to set focus.