SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2006
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open links in new window exception not working on Addthis button

    Hi all,

    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"?

    Code JavaScript:
    $('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");
    });

    Many thanks

  2. #2
    Non-Member
    Join Date
    Nov 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to reinstall the Web browser again .If still not working use any other web Browser.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •