title: Facing Issue with ShowModalDialog
body: <p>I want to display the webpage as a modal popup.</p>
  
  <pre><code>Response.Write("&lt;script type='text/javascript'&gt;detailedresults=window.showModalDialog('NewFile.aspx','Data','left=(screen.width) ? (screen.width - 800) / 2 : 0,top=(screen.height) ? (screen.height - 700) / 2 : 0,width=1000,  height=500, toolbar=no, menubar=no, titlebar=no, location=no, addressbar=no');&lt;/script&gt;");
  </code></pre>
  
  <p>While using the above code. I am able to display web page as modal popup, but the issue is that it also opens a third window which is a web page of same name and not a modal popup.</p>
  
  <p>Please help me in resolving this issue. Thanks in Advance.</p>