How to download or open new window for pdf

Posted on 2005-04-11
Last Modified: 2010-04-25
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!
Question by:plundquist
    LVL 33

    Expert Comment

    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>
    LVL 10

    Accepted Solution

    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.
    LVL 33

    Expert Comment

    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.

    Author Comment

    Thanks for all your help!
    LVL 10

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now