0

I currently have some javascript to open a link to a pdf file in a new window:

function help(){
var help = window.open("/dir/downloadFile.action", "HelpFile","HEIGHT=600,WIDTH=800,SCROLLBARS,RESIZABLE,TOOLBAR");
help.focus();
}
<button id="helpButton" class="navigationButtons" onclick="help()" > <img src="picture.png" title="Help"></button>

I would like to replace the part that opens up a new window, to rather open the pdf file in a new tab. Is this possible, and how do I accomplish that. I went through the other links, but they are different to what I am looking for. Thank you.

Harriet
  • 1,483
  • 5
  • 20
  • 34

0 Answers0