Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening a new tab to read a PDF file

Tags:

html

css

I am probably missing something simple here, however i will ask anyway. I have made a link to open up a PDF file, however it opens up in the current tab rather than a new one. What code shall i use in HTML to open a new tab to read the PDF file.

<div class="footer_box_content">     <div class="cleaner_h10"></div>     <p>Many  thanks  to  everyone  who cleared snow and ice during the cold spell in February.     Should Arctic conditions return, each block has a shovel and a jar of rock salt  to  clear  the  steps.      Please click more to read the full newsletter.</p>     <div class="button_01"><a href="newsletter_01.pdf">Read more</a></div> </div> 
like image 304
MultiWizard Avatar asked Jun 04 '13 19:06

MultiWizard


People also ask

How do I open a PDF in a new window instead of a tab?

Launch a PDF>Navigate to Edit>Preferences>General>Uncheck the option "Open documents as new tabs in same windows" and then relaunch Acrobat. You would now see PDF' opening in new Windows and not in a tabbed format in the same window.

Should PDFs open in a new tab?

In general, avoid PDF for on-screen reading as much as possible. PDF is good for printing documents, that's it. Open links to PDF documents in new tabs on desktop.

How do I get Chrome to open PDFs separately?

PDF files will download in Chrome just like any other file. You can select the downloaded file at the bottom of the window, then choose “Open”, then the file will open in a separate Reader window. Select the “Always open files of this type” option.


1 Answers

<a href="newsletter_01.pdf" target="_blank">Read more</a> 

Target _blank will force the browser to open it in a new window

like image 156
Chris Avatar answered Oct 12 '22 22:10

Chris