View Full Version : Link Extractor Mod to Get Page Domains

10-12-2005, 12:31 PM

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++){
<button onClick="extractlinks()">Extract Links</button>

10-17-2005, 01:10 AM
if you have this href
what string must then be returned

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum