I have a link that opens in a new tab with _blank:
<a href="new_page.html" target="_blank">link</a>
I’d like to be able to ‘click’ on this from Javascript. I know I could do document.location=... but the problem here is the new tab part. Is this possible?
You can usually open a new window or tab using
window.open. So instead of settinglocation, just callwindow.openand pass only the URL, nothing else.