Hi team!
I’ got all the Images with Name “BtnDescarga” and with Attribute “onclick”, and put it on an Array called “srcList”:
[b] Script = “var enlacesjuntos;” _
- “var images = document.getElementsByName(‘BtnDescarga’);” _
- “var srcList = [];” _
- “for(var i = 0; i < images.length; i++) {” _
- “srcList.push(images[i].getAttribute(‘onclick’));” _
- “};”
HTMLViewer1.ExecuteJavaScript(Script)[/b]
As you can see I have a Variable “EnlacesJuntos”.
Now I want to concatenate all values of the array in this variable.
Example:
srcList Values: cat,dog,platypus,squirrel,dinosaur,beaver, crocodile
and the final value must be:
enlaces juntos: cat dog platypus squirrel dinosaur beaver crocodile