title: Popup window in Javascript
body: <p>In Javascript, I want to open my <code>window.html</code> file in a popup window. But it doesn't display any text. Just a blank page.</p>
  
  <p>This is index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
  
    &lt;script language="javascript"&gt;
      var newwindow;
  
      function popit(url){
        newwindow = window.open(
            url, '', "status=yes, height=500; width=500; resizeable=0");
    }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;a href="javascript:popit(window.html);"&gt;CLICK ME!&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>window.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;SAMPLE TEXT&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Why doesn't it display any text?</p>