open pdf in new tab 2 page mode js code example
Example 1: open pdf in new tab javascript
window.open("Here Download PDF url", '_blank');
Example 2: js open pdf in new tab
<!--Download or Open tab with PDF-->
<!--IN PURE HTML-->
<a href="PDF URL" download="pdf">Download</a>
<a href="PDF URL" target="_blank">View</a>