How to display PDF in HTML using JavaScript code example
Example 1: open pdf in browser javascript
<a href="#" onclick="window.open('MyPDF.pdf', '_blank', 'fullscreen=yes'); return false;">MyPDF</a>
Example 2: html js display pdf file
<embed src="file_name.pdf" width="800px" height="2100px" />