If you click on an image, another tab will be opened. What is the command? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

If you click on an image, another tab will be opened. What is the command?

3rd Jun 2017, 3:32 AM
Surendra Rajawat
Surendra Rajawat - avatar
2 ответов
+ 1
Just add the target="_blank" attribute to your surrounding anchor tag. <a target="_blank" href="www.google.com"><img src="img.jpg"></a>
3rd Jun 2017, 3:58 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
thanks for your answer
3rd Jun 2017, 4:01 AM
Surendra Rajawat
Surendra Rajawat - avatar