Question
html button won't open link in a new window/tab when using window.location
When applying a link action to a button, I cannot get it to open in a new window/tab:
<button onclick="window.location.href='https://google.com';" target="_blank" type="button" class="btn btn-outline-primary btn-lg ctaBtn" style="margin-top: 1em;">Request Sample</button>
Can you please advise what must be applied to get the button link to open in a new window/tab?
Thanks.
