title: Prevent refreshing / reloading a page with JavaScript
body: <p>I know this is not recommended, but I need it because I have an iframe inside the page who has the actual content and I want that when the users hits refresh button, iframe reloads not entire page.</p>
  
  <p>I know I have to call <code>onunload</code> / <code>onbeforeunload</code> event, but I don't want to ask me if I want to leave the window, just don't. </p>
  
  <p>Is that possible? I've got handled the F5 key, but I like to prevent refreshing from button too.</p>