0

I want to open pdf file on new tab, but why my code open new tab and download its file?

<a href="assets/readme.pdf" target="_blank">Read Me</a> 
1
  • <a href="assets/readme.pdf" target="_blank">Read Me</a> Commented Jul 17, 2019 at 10:35

1 Answer 1

1

In order to do this, there is a chrome setting you have to disable:

enter image description here

chrome://settings/content/pdfDocuments

Sign up to request clarification or add additional context in comments.

3 Comments

i can't open you sharelink
chrome://settings/content/pdfDocuments
I just see button on off with text "Download PDF files without automatically opening them in Chrome"

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.