Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ target="_blank "HELP

Posted by: Naser Jan 9 2020, 09:12 PM

Hello.
Been trying to let the social media link open in new tap unsure.gif

CODE
<a href="https://www.facebook.com/xxx"  class="sociallinks--a sq40 txt-white hov-txt-white scale-effect flex-cl fs16" data-nc-msm="flex-cc"><i class="fa fa-facebook" aria-hidden="true"></i></a>


Thanks

Posted by: Darin McGrew Jan 9 2020, 10:12 PM

QUOTE(Naser @ Jan 9 2020, 06:12 PM) *
Been trying to let the social media link open in new tap unsure.gif

CODE
<a href="https://www.facebook.com/xxx"  class="sociallinks--a sq40 txt-white hov-txt-white scale-effect flex-cl fs16" data-nc-msm="flex-cc"><i class="fa fa-facebook" aria-hidden="true"></i></a>
I don't see any attempt to open the link in a new tab/window in the snippet of markup you provided.

Posted by: Naser Jan 10 2020, 02:53 PM

QUOTE(Darin McGrew @ Jan 9 2020, 11:12 PM) *

QUOTE(Naser @ Jan 9 2020, 06:12 PM) *
Been trying to let the social media link open in new tap unsure.gif

CODE
<a href="https://www.facebook.com/xxx"  class="sociallinks--a sq40 txt-white hov-txt-white scale-effect flex-cl fs16" data-nc-msm="flex-cc"><i class="fa fa-facebook" aria-hidden="true"></i></a>
I don't see any attempt to open the link in a new tab/window in the snippet of markup you provided.


hey Darin . sorry of i wasn't clear about my first post
i want add target="_blank on code but didn't work.

Posted by: Christian J Jan 10 2020, 06:45 PM

TARGET is an attribute of the link element, just like HREF and CLASS. So you can put it among the other attributes, like this:

CODE
<a href="https://www.facebook.com/xxx" target="_blank" class="sociallinks--a sq40 txt-white hov-txt-white scale-effect flex-cl fs16" data-nc-msm="flex-cc"><i class="fa fa-facebook" aria-hidden="true"></i></a>

Posted by: Naser Jan 10 2020, 09:02 PM

QUOTE(Christian J @ Jan 10 2020, 07:45 PM) *

TARGET is an attribute of the link element, just like HREF and CLASS. So you can put it among the other attributes, like this:

CODE
<a href="https://www.facebook.com/xxx" target="_blank" class="sociallinks--a sq40 txt-white hov-txt-white scale-effect flex-cl fs16" data-nc-msm="flex-cc"><i class="fa fa-facebook" aria-hidden="true"></i></a>



awesome! its works .
many thanks Christian biggrin.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)