Html Code Needed To Upload PDF??

by 3 replies
8
Hi All,

This may be a silly question, but here goes:

I'd like to include a link to a .pdf in an autoresponder series of mine. I've uploaded the .pdf to the server under the site in question using FileZilla.

I'd like the link to look like: mysite.com/myreport.pdf

I've created a page on my site with an "a href" pointing to the pdf and uploaded it to the server as well.??

I can't get the link to make the .pdf pop-up upon clicking (shows 404 error). Only thing I can figure is that i'm missing some HTML code to make this happen, or I've somehow got the pdf uploaded incorrectly (I've uploaded it under "mysite" which is under public_html)

Am I missing a step? Can anyone tell me where I'm off track?

Any help is greatly appreciated!

Thanks!

~Rob
#website design #code #html #needed #pdf #upload
  • Rob

    Add mysite.com/myreport.html to your responder.

    Add the below code into myreport.html including the full link to your PDF and you should get the desired effect though beware popup blockers .


    <html>
    <title>Your PDF</title>
    <head>
    <script language="JavaScript">
    <!--
    function open_PDF()
    {

    var new_window = window.open('mysite.com/yourpdf.pdf','yourPDF', ' menubar,resizable,dependent,status,width=400,heigh t=600,left=10,top=10')
    }
    // -->
    </script>
    </head>

    <body onload="open_PDF()">

    </body>
    </html>
    • [1] reply

    • Thanks for the post.... am also having thesame problem in my site am going to try it out and the result..
      • [1] reply

Next Topics on Trending Feed