javascript open pdf in new tab

JavaScript
window.open("Here Download PDF url", '_blank');
Source

Also in JavaScript: