Last active
July 23, 2016 13:45
-
-
Save avicoder/69e03ff7a5c0dd71daafa1209209bada to your computer and use it in GitHub Desktop.
Find all the hyperlinks in a 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
/* Open Inspect element or scratchpad and run the command below...*/ | |
links = document.links; | |
for (i = 0; i < (links.length); i++) { | |
console.log(links[i].href); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment