views:

1021

answers:

1

I need the JavaScript code to iterate through the filled attributes in an HTML element.

This Element.attributes ref says I can access it via index, but does not specify whether it is well supported and can be used (cross-browser).

Or any other ways? (without using any frameworks, like jQuery / Prototype)

+8  A: 
Tomalak
Works in Opera and Safari too.
Bryan