title: How do you add a button which opens a page in a pop-up window
body: <p>I am working on a PHP file upload, but I want the button which opens my uploading page to open it in an pop up window. So it would be like many sites do it, press a button and It opens a pop up where you can upload files.</p>
  
  <p>Here is a code that I tried and it didn't work:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="upload.html" target="_blank"&gt;
  &lt;input type="button" class="button" value="Upload" /&gt;</code></pre>
  </div>
  </div>
  </p>