How to download or open new window for pdf

Hi! I am using Dreamweaver, and have a pdf file that I would either like the user to be able to download, or just view it in another window. How do I do that? Thanks so much!
plundquist
plundquistAsked:
Who is Participating?
 
edwardiiiCommented:
Hi, plundquist.

I you would like the PDF to open in a new browser window when the user clicks the PDF link, add "target=_blank" to your link code (I'm building on humeniuk's posting above):

     <a href="file.pdf"target=_blank>Link Anchor Text</a>

We use the "target=blank" option often at my work, so employees won't get confused.
0
 
humeniukCommented:
Just upload the pdf file to a directory on your website and link to it like you would to any html page:

<a href="file.pdf">Link Anchor Text</a>
0
 
humeniukCommented:
Good point edwardiii.  The link will function as any normal link with the attributes (ie. target=_blank) that you would use for a link to another page or whatever.
0
 
plundquistAuthor Commented:
Thanks for all your help!
0
 
edwardiiiCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.