Some code that will extract all the links on the page and put them into a new document
<script language="JavaScript1.2">
function extractlinks(){if (document.all||document.getElementById){
if (document.all)
var links=document.all.tags("A")
else if (document.getElementById)
var links=document.getElementsByTagName("A")
var total=links.length
var win2=window.open("","","menubar,scrollbars,status" )
win2.document.write("<h2>Total Links="+total+"</h2><br>")
for (i=0;i<total;i++){
win2.document.write('<a href="'+links[i]+'">'+links[i].innerHTML+'</a><br>')}win2.document.close()}}
</script>
<button onClick="extractlinks()">Extract Links</button>


LinkBack URL
About LinkBacks
Reply With Quote




Bookmarks