getAttribute: Firefox vs Internet Explorer

Well, since IE 7 (7.0.5730.11) doesn't have a DOM array "attributes", if you want a cross-compatible solution to access the value of, let's say, the "onclick" attribute, you'd have to use:


Using "theobject.getAttribute('onclick')" does not work equally on Firefox and IE, that is, you couldn't expect setAttribute to work with its return value.