title: Preventing navigation in parent browser window while child window is open
body: <p>///this is a code to display a pop-up windows in javascript. how can prevent the user return to the parent window, until he close the pop-up window? </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   &lt;!--
    var stile = "top=10, left=10, width=600, height=800 status=no, menubar=no, toolbar=no scrollbar=no";
       function Popup(apri) {
          window.open(apri, "", stile);
       }
   //--&gt;
  &lt;/script&gt;
  &lt;a href="javascript:Popup('YOURPAGE.html')"&gt;show popup&lt;/a&gt;
  </code></pre>