Hello in the code below i am trying to download all the xml that exist on the page simply by runing the code.
but with this code , only one is being downloaded , i guess its the last one.
What should i do ?
Thanks for your help.
Code:var fruit=document.getElementsByClassName('tbody')[2].getElementsByTagName('tr'); var j=0 var s=[] var k=[] for(var i=0;i<fruit.length;i++){ s=fruit[i].getElementsByTagName('td')[2].innerText; if(s.substr(s.length-3,22)=="xml"){ k[j]=s.replace(/\s+/g, ''); document.getElementById(k[j]+"_cell").click(); j++ } };


Reply With Quote
Bookmarks