title: How to display HTML Content using window.showModalDialog()
body: <p>Will I be able to display a HTML content (not a file) in a pop up window using JS?</p>
  
  <p>I am trying to open a pop up window and display an user defined HTML inside this. I am trying the below, but it doesn't work.</p>
  
  <pre><code>window.showModalDialog("&lt;p&gt;Pop up window text&lt;/p&gt;","resizable: yes");
  </code></pre>
  
  <p>Can some one suggest me how to do this? Thanks in advance.</p>