title: how to make popup windows always on top?
body: <p>I want to have a javascript/jQuery popup window (child page) that is always in front of the parent page, something like facebook's current picture viewing feature.</p>
  
  <p>it would be closed by the user clicking on the close button.</p>
  
  <p>I have tried as below:</p>
  
  <pre><code>mywindow  = window.open ("DownloadForm.aspx", "mywindow","location=1,status=1,scrollbars=1, width=350,height=150");
  mywindow.moveTo(350, 350);
  </code></pre>
  
  <p>this code successfully opened a child page in front of the parent page, but there is jQuery code ( $(#test).click() ) on the parent page which causes the parent page to always be in front.</p>
  
  <p>I tried putting the <code>window.open()</code> code after <code>$(#test).click()</code>, but it didn't solve the problem.</p>
  
  <p>The <code>$(#test).click()</code> is necessary, therefore I need to have a workaround.</p>
  
  <p>I appreciate any help, thank you in advance.</p>