How to I open a html page and a pdf page through one hyperlink?

  • Thread starter Thread starter Colette M
  • Start date Start date
C

Colette M

Guest
I have been using the code below, I have used it successfully but I do not want the html page to be opened in a new browser, I just want it to open in the original browser where this link will be.

<a href="one.html" onclick="window.open(this.href);window.open('two.pdf');return false">Open a page and a pdf</a>
 
I don't think that's possible. Only one open per hyperlink.

You can open the HTML, and then the first instruction in the HTML code can be used to open the pdf file, but they would be sequential actions, not concurrent. (I don't remember how to do that - sorry :-(
 
Back
Top