+ 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 Réponses
+ 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