.NET Code Log
Tips, reminders and ideas on how to solve different code issues.
Wednesday, April 3, 2019
Chrome Console - List all href links in a page
var links=document.getElementsByTagName('a')
for (var i = 0; i<links.length; i++)
{
console.log(links[i].href);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment