title: Controling The Location Of The "Confirm Navigation" Window with JavaScript
body: <p>Often a user will misuse a Rich Internet Application, and attempt to use the browser's Back Button.  Such mistakes can be disruptive to changed but unsaved information, as in a Flash or Flex application.  </p>
  
  <p>It is a simple matter to alert the user for confirmation before leaving the page (see below).  However, I have a client who strongly desires the resulting "Confirm Navigation" window to appear on the SIDE of the screen, as opposed to the center, which by default, it currently does in all major browsers.  </p>
  
  <p>The window in question says different things depending on your browser, but how could I go about influencing the <em>position</em> at which it pops up?</p>
  
  <p>Just so you are certain as to which window I'm referring:</p>
  
  <p>If you use I.E. the window text will say: "Are you sure you want to navigate away from this page?"
  If you use Google Chrome, the window title will say "Confirm Navigation".</p>
  
  <p>To wit: Something similar to the following Javascript:</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;HEAD&gt;
    &lt;script language="javascript"&gt; 
   function SaveYourWork() {
     return('Please Save Your Work Before Leaving The Page.\n\nAre You Sure?');
   }
      window.onbeforeunload=SaveYourWork;
    &lt;/script&gt;
  &lt;/HEAD&gt;
  &lt;BODY&gt;
    &lt;h2&gt;Some R.I.A.&lt;/h2&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>How can I make the confirmation window pop up in a location other than the very center of the browser window, such as the far left instead?</p>