Results 1 to 2 of 2
Nov 3, 2011, 04:27 #1
- Join Date
- May 2006
- 0 Post(s)
- 0 Thread(s)
Open links in new window exception not working on Addthis button
I have some code which forces external urls to open in a new window, it works great but an Addthis I have added to the exclusion list still opens in a new window (which is a fallback if there is no .js etc) (as well as the popup appearing).
Really not sure what to do about this, any suggestions will be welcome. Maybe change the new window method from simply adding the target="_blank"?
$('a[href*="://"]:not(a[href^="http://local.dignity.co.uk"]):not(a[href^="http://www.addthis.com"])').addClass("external").attr("title","This link will open an external website").attr("rel","nofollow").attr("target","_blank"); });