title: Showing Return value of function "True/false" on OnBeforeUnload
body: <p>I am calling a function on OnBeforeUnload and returning true/false. When I am going to close the browser, the browser displays the message "Are You Sure You want to navigate away from this page", below this it is written "True/False".</p>
  
  <p>Code is like :-</p>
  
  <pre><code>&lt;body   onbeforeunload="javascript:return unlockOperationon()"&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>And JavaScript Function Is:-</p>
  
  <pre><code>function unlockOperationon()
  {
      return true;
  }
  </code></pre>