Hallo,
Und dann natürlich noch statt
if(links[i].attributes["href"])
if(links[i].href)
Ich ticke halt kaum noch auf DOM-0-Level, dazu mache ich DOM mittlerweile vorwiegend im SVG-Kontext, wo solche Attribut-Abfragen nicht mehr machbar sind ;-).
MfG, Thomas