I got this script from www.dynamicdrive.com
This is the original scripts:
Code:
<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>
It works, but it also extract all kind of links. In my page I set _blank target for link to outside myside. So how to modify it so it just extract link with "target='_blank'" attributes ?

Thanks