Nel tutorial jQuery di oggi vedremo come trovare tutti i link interni che si aprono con un dominio, uno slash, un percorso relativo di file o un hashtag.

 
var siteURL = "http://" + top.location.host.toString();var $internalLinks = $("a[href^='"+siteURL+"'], a[href^='/'], a[href^='./'], a[href^='../'], a[href^='#']");
 

Share on FacebookCondividi su facebook

fonte: www.sastgroup.com