open pdf in new tab 2 page view in js code example
Example 1: 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>
Example 2: javascript open pdf in new tab
window.open("Here Download PDF url", '_blank');