download
attribute as described here. target=_blank
will make a new browser window appear before the download starts. That window will usually be closed when the browser discovers that the resource is a file download.<a download
attribute already mentioned,<p><a href='file:///....example.pdf' download target='_blank'>test pdf</a></p>
<a>
tag in HTML5 <a href='http://www.odin.com/form.pdf' download>Download Form</a>
<a href='http://www.odin.com/form.pdf' download='Form'>Download Form</a>