title: pop-up a window when the user clicks a button
body: <p>Here is my HTML code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p style="align-content: center"&gt;
    &lt;A style="align-content: center" HREF="newpopup.html" onClick="return popup(this, 'stevie')"&gt;my popup&lt;/A&gt;&lt;br&gt;
  &lt;/p&gt;
  &lt;p align="center"&gt;
    &lt;input type="button" onclick="popup(this, 'about') " value="CLICK HERE"&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>And JavaScript:</p>
  
  <pre class="lang-js prettyprint-override"><code>function popup(mylink, windowname)
  {
    if (! window.focus)
      return true;
    var href;
    if (typeof(mylink) == 'string')
      href=mylink;
    else 
      href=mylink.href;
    window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
    return false;
  }
  </code></pre>
  
  <p>My button 'CLICK HERE' pops-up a window but it is empty. I want my button to work just like above URL link 'my popup'.</p>
  
  <p>So I want to open the contents of <code>newpopup.html</code> in my pop-up window on a button click.</p>
  
  <p>My URL link for pop-up is working fine, I want the button to work thesame.</p>