Hi All, my eyeballs are damn near worn down to the sockets trying to get this to work, hope someone can help...

I'm attempting to copy all the related download addresses for a given webpage as ONE clipboard item.

Here is an example URL; http://stealth.to/?id=2zau9uh4ueiaworwmho05ajsdo7n0u

Using...

javascript:myArray = [];for ( i=0; i<document.getElementsByTagName('A').length; i++){kink=document.getElementsByTagName('A')[i].innerHTML.match(/\d{7}/);if(kink!=null){myArray[i]="http://stealth.to/popup.php?id="+kink+"<br/>"}};document.write(myArray)

...i can produce a suitable list, albeit poorly formatted.

But even when i substitute " document.write(myArray) " for " window.clipboardData.setData(myArray) " nothing happens.

------------------------------------------------------------------------------------------------------

I sourced this nifty "Domains to clipboard" bookmarklet from -> http://www.subsimple.com/bookmarklet...tion_links.asp

javascript:ds=new Array();function aD(u){if(u.indexOf('http')!=0)return;P=u.indexOf('://');if(P>0){u=u.substring(P+3);P=u.indexOf('/');if(P>0){u=u.substring(0,P);F=false;for(j=0;D=ds[j];++j){if(D==u){F=true;break;}}if(!F)ds[ds.length]=u;}}}for(i=0;L=document.links[i];++i){aD(L.href);};s='';for(i=0;D=ds[i];++i){s+=D+'\n';}void(clipboardData.setData('Text',s));

...which at the very least is proof of concept. Can anyone help me adapt this to my purposes ?

Many Thanks