Skip to content

Instantly share code, notes, and snippets.

@Bodge-IT
Created January 18, 2021 10:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Bodge-IT/e97e870fcfc1672fef72638ecad46683 to your computer and use it in GitHub Desktop.
<a href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/9487/LV_MOTOR_DOCUMENT_OF_INSURANCE.pdf" target="_blank">HTML a href target _blank</a>
<a href="#0" onclick="window.open('https://s3-us-west-2.amazonaws.com/s.cdpn.io/9487/LV_MOTOR_DOCUMENT_OF_INSURANCE.pdf');">JS window.open()</a>
<a href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/9487/LV_MOTOR_DOCUMENT_OF_INSURANCE.pdf" download="Nice Name of Document.pdf">HTML5 download attribute</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment