...

View Full Version : Link Extractor Mod to Get Page Domains



JANLEE
10-12-2005, 01:31 PM
Hi,


O would like modify DynamicDrive's Link Extractor below to get Just the Domain name also. Separated in three columns: title,link,domain (.com,.net,.uk,.it )

Can any one help with this script...... script follows :

Thanks JLee





<script language="JavaScript1.2">

function extractlinks(){
var links=document.all.tags("A")
var total=links.length
var win2=window.open("","","menubar,scrollbars")
win2.document.write("<h2>Total Links="+total+"</h2><br>")
for (i=0;i<total-1;i++){
win2.document.write(links[i].outerHTML+"<br>")
}
}
//-->
</script>
<button onClick="extractlinks()">Extract Links</button>

Lerura
10-17-2005, 02:10 AM
if you have this href
"http://www.codingforums.com/showthread.php?"
what string must then be returned



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum