Get all the strings on the page:
<a href="article1.html">Link1</a> <a href="article2.html">Link2</a> <a href="article3.html">Link3</a> <script> var links = document.links; for (var i = 0; i < links.length; i++) { document.write("<br/>" + links[i].innerText); document.write("<br/>" + links[i].href); } </script>