title: Is there any way to prevent the browser closing after clicking on the "Close" button
body: <p>My requirement is as follows:</p>
  
  <p>When the User clicks the <code>close</code> button on the browser in a page, the <code>customized popup</code> window will appear.
  I had designed the <code>popup</code> window and I can open that window with the following code:</p>
  
  <pre><code> window.onbeforeunload = function (e) {
              openwindow(200, 100, 'Close.aspx');
          };
  </code></pre>
  
  <p>But my ultimate requirement is that the main parent window should not be closed after clicking <code>any</code> buttons on the popup window. I don't want the browser's default alert return message window and I am displaying the popup window here instead of browser's default alert window. Is there way to stop the browser closing..?</p>