Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

get all href from html

var arr = [], l = document.links;
for(var i=0; i<l.length; i++) {
  arr.push(l[i].href);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #href #html
ADD COMMENT
Topic
Name
3+8 =