PDF's Not Opening In New Tab

  • kdevlin1983
    Asked on March 15, 2017 at 1:30 PM

    I am trying to have a PDF open in a new window when "Download File" is clicked, but when I add in target="_blank" to the source code, it doesn't open it in a new window.

    Form:

    https://www.jotform.com/build/63475426871161

    Is there a check box for opening a hyperlink in a new window I am missing?

     

  • BJoanna
    Replied on March 15, 2017 at 4:08 PM

    I have tasted your form and file is opened in new tab. 

    You can use target="_blank" or java script onDISABLEDclick="window.open('http://www.yahoo.com', '_blank')" to open link in new window/tab. However this will also depend on browser settings. 

    Please check this articles:

    https://www.w3schools.com/tags/att_link_target.asp 

    http://stackoverflow.com/questions/29444051/link-with-target-blank-does-not-open-in-new-tab-in-chrome 

    Also please note that it is not possible to add script codes to our forms. You will need to redirect your users to your webpage where you will add your file and add java script that will open that file in new window. 

     

    Hope this will help.