open document in new window

  • My site has many documents that I would like people to be able to open and read without downloading. I have checked the “open link in a new window/tab” option, but documents still download. Can someone please help?

    documents are PDFs, .jpgs, nothing fancy.

    thanks.

    The blog I need help with is: (visible only to logged in users)

  • Hi

    I took at look at your page at https://seidenbergreading.net/resources/videos/ and checked out some of the links. It does not look the checkbox for “open in a new window” worked on that page.

    If you look at the HTML (or text editor) tab in your page or post editor, you can edit the links manually to add the code to tell it to open in a new window.

    Here’s an example from one of your links:

    <a href="https://markseidenberg.files.wordpress.com/2016/07/batfun-information1.pdf" target="_blank">README</a>

    I took the link above right from your page and added
    target="_blank"
    to the inside of the link code. Make sure that you keep the quote marks in the same place as above. This tells the link to open in a new window/tab.

    This should work for the .PDF, .JPG and .PNG files. The .pps files will not open in a browser window, your readers will have to download/open those.

    Keep in mind that some browsers have settings that override what you set on your website, especially for PDF files. Sometimes people like to open PDF files in the browser, and sometimes they default to downloading.

    I’m not 100% sure about the video files. I can force them to open/play in a new window using Safari, but not using Chrome. That might have to do with the users browser settings.

    Hope this helps! Let me know if you have any other questions.

  • Sorry, I still don’t have this figured out.
    Here’s a link to a document:
    A note for readers in Australia, Canada, New Zealand, the UK

    I would like it to open in a new window. This is preferable to automatically downloading the document to the visitor’s computer, which is what currently happens.

    Can you show me what the HTML should look like? thanks.

    MSS

  • Hi there!

    The HTML for something to open in a new window is:

    A <a href="https://markseidenberg.files.wordpress.com/2016/07/batfun-information1.pdf" target="_blank">note</a> for readers in Australia, Canada, New Zealand, the UK

    As I mentioned, the decision for a link to open in a new tab/window or for the file to download automatically is a setting that the user controls in their browser. It’s not something we can control/mandate with HTML.

    Using the above code will allow the file to open in a new window, for those users that permit that in their browsers. Others will use settings that will only download the files.

    Hope this helps!

  • The topic ‘open document in new window’ is closed to new replies.