Created
November 14, 2017 19:20
-
-
Save RupGautam/cd9ae0a930da33693afce378cdcfd880 to your computer and use it in GitHub Desktop.
Get all the hrefs from webpage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var links = document.querySelectorAll('#content a'); | |
for(var i = 0; i < links.length; i++){ | |
console.table(links[i].href); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment