title: How to remove prompt on unload event using javascript
body: <p>How can I remove prompt on unload event using javascript? thanks in advance...</p>
  
  <p>hm, I don't want to show the prompt when firing the custom function for the unlaod event of the body... Is it possible? so here's my code:</p>
  
  <pre><code>window.onbeforeunload = function()
  {
      //cancel the unload
              //cancel prompt
  }
  </code></pre>