0

I'm creating a email template for validation email for user sign-up. Below is the html code:

<form>
    <input style="width: 300px; padding: 20px; cursor: pointer; font-weight: bold; background: #141452; color: #ffffff; border-radius: 10px;font-size: 150%;" type="button" 
           value="Verify my email address" onclick="window.location.href='https://www.google.com/'"/>
    </form>

I want to open the link in a new tab instead. Does anyone know how to incorporate "Target" in this code block?

Thanks!

Sophia Wu
  • 61
  • 1
  • 9

1 Answers1

2

Try this instead:

window.open('http://www.google.com','_blank');
nvioli
  • 4,137
  • 3
  • 22
  • 38