How to go new tab with 'link'? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to go new tab with 'link'?

8th Dec 2016, 3:12 AM
Pururin
4 Answers
+ 3
I found. It's possible with attr target and value '_blank'. It is right?
8th Dec 2016, 3:15 AM
Pururin
+ 2
Indeed, value '_blank' with JS works to open in a new tab.
8th Dec 2016, 3:40 AM
Nahuel
Nahuel - avatar
0
<a herf="example.html" target=_blank>example</a>
8th Dec 2016, 3:51 AM
Shayne_Van
0
@shayne so you meed to put quotes? target= "_blank"
2nd Jan 2017, 9:54 PM
Daren Morreale