title: Prevent User to reload page using jquery or javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3527041/prevent-any-form-of-page-refresh-using-jquery-javascript">Prevent any form of page refresh using jQuery/Javascript</a>  </p>
  </blockquote>
  
  
  
  <p>how can i prevent user to reload (refresh) html page using javascript or jquery.</p>
  
  <p>after loading the page for the first time, i want to prevent user reload the page either by press F5 or refresh from browser or by any way.</p>
  
  <p><code>Can i do that?</code></p>
  
  <p><b>Note:</b> i try <code>window.onbeforeunload</code>, but i didn't know how to stop window.onload event from it.</p>
  
  <p>Any help? </p>