setAttribute (DOMElement - JavaScript) Sets an attribute value for this element. Defined inDOMElement SyntaxsetAttribute(name:string, value:string) : void