Internet Explorer 4, Netscape 6
element.setAttribute(name, value)
name
The name of the attribute to set.
value
The value to set it to.
setAttribute( ) sets the attribute name of element to value.