0

Customers send in links in email. When I click on them, I want those links only to open in a new window/tab. How do I do that?

flag
I'm going to come back and answer this when I get a chance. – Rich Armstrong Dec 30 2009 at 22:16

1 Answer

1

$(".emailBody a").attr("target","_blank");
$(".bugevent .body a").attr("target","_blank");
link|flag
jQuery supports a comma in selectors, so you could say $(".emailBody a,.bugevent .body a").attr("target","_blank") – Daniel LeCheminant May 24 2010 at 1:42

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.