/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// En lugar de usar un bucle for, podemos hacerlo asÃ: var links = document.getElementsByTagName('a'), i = links.length; while(i--){ var title = links[i].getAttribute('title'); // bla, bla, bla }
Comments
