title: Javascript to open popup window and disable parent window
body: <p>I want to open a popup window and disable the parent window. Below is the code that I am using;</p>
  
  <pre><code>function popup()
  {
  
      popupWindow = window.open('child_page.html','name','width=200,height=200');
      popupWindow.focus();
  }
  </code></pre>
  
  <p>For some reason, the parent window does not get disabled. Do I need some additional code OR what is the case?</p>
  
  <p>Again, I am looking for something similar to what we get when we use showModalDialog()..i.e. it does not allow to select parent window at all..Only thing is I want to get the same thing done using window.open</p>
  
  <p>Also please suggest the code which will be cross-browser compatible..</p>