Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Link Extractor Mod to Get Page Domains

Link Extractor Mod to Get Page Domains

JANLEE
10-12-2005, 12: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, 01:10 AM
if you have this href
"http://www.codingforums.com/showthread.php?"
what string must then be returned


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

validate using ONSUBMIT vs ONUNLOAD
data from forms
Cross-Browser Menu Now Working, BUT Now Have FireFox Refresh Loop
How do you write maintainable code?
How to excecute 2 different form validation Java scrpt with 1 submit button ?
I want to Resize frames on a button click
Need Cross-Browser Capable Menu / Script - event.srcElement to getElementById
Simply splitting a date up?

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics