title: Open mailto link and close page
body: <p>Is there a way to have a page open a <code>mailto</code> link and immediately close the page which opened that link? Right now I have the following code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;script type="text/javascript"&gt;
         window.location.href = "mailto:test@domain.com";
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
       &lt;a href="mailto:test@domain.com"&gt;Test&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I navigate to that page, the mail client is opened but then page stays open which I would rather not have.</p>