Hello,
I can add a class when the link goes to my own website. This works fine:
Does anyone here know how to create a condition to add the link-is-external class when the link points outside of my website?
Thank you very match!
Iva
I can add a class when the link goes to my own website. This works fine:
JavaScript:
$("a[href^='https://mywebsite.com']").addClass("link-is-internal");
Does anyone here know how to create a condition to add the link-is-external class when the link points outside of my website?
Thank you very match!
Iva