I am probably missing something simple here, however i will ask anyway. I have made a link to open up a PDF file, however it opens up in the current tab rather than a new one. W
As everyone else has pointed out, this can work:
Read more
But what nobody has pointed out is that it's not guaranteed to work.
There is no way to force a user's browser to open a PDF file in a new tab. Depending on the user's browser settings, even with target="_blank"
the browser may react the following ways:
Take a look at Firefox's settings, for example:
Chrome has a similar setting:
If the user has chosen to "Save File" in their browsers settings when encountering a PDF, there is no way you can override it.