Answers for "onclick open new tab"

8

javacript open url in new tab

window.open(url,'_blank');
window.open(url);
Posted by: Guest on July-05-2020
1

open new tab when clicking link html

<!-- add target="_blank" to open new tab when link is clicked [in HTML]-->
<a href="YourLink" target="_blank">YourText</a>
Posted by: Guest on January-07-2021

Browse Popular Code Answers by Language