Answers for "onclick href to open link in new tab"

3

button open link in new tab

<button class="btn btn-success" onclick=" window.open('http://google.com','_blank')"> Google</button>
Posted by: Guest on May-25-2021
-1

onclick open new url html

<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />
Posted by: Guest on June-02-2021

Code answers related to "onclick href to open link in new tab"

Browse Popular Code Answers by Language