Javascript, get all links from a page with exclusion?
I want to get all links <a></a> from a page and got this code that is working without any problem: var array = []; var links = document.getElementsByTagName("a"); for(var i=0, max=links.length; i<max; i++) { array.push(links[i].href); }; console.table(array); Only thing left…