Documents displaying On my Website | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Documents displaying On my Website

I need help with displaying or viewing documents on my website instead of them downloading to my local drive after clicking on a link. I need them to display on a new tab. I tried "ViewerJS", but it didn't output the docs, just a blank screen.

24th Nov 2016, 1:23 PM
TJ W3
TJ W3 - avatar
2 Answers
+ 1
what is ViewerJS. a .js file?
24th Nov 2016, 1:30 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
by document do you mean .PDF .zip or other than code for opening new tab is <a href=pathtodoc.pdf target="_blank"> but it will same as the other code actually browser have plugins to view extra files but if does not have then it downloads it
24th Nov 2016, 5:28 PM
Sandeep Chatterjee