javascript add attribute to node 34 Javascript Add Attribute To Node The setAttribute () method is used to set an attribute on the specified element. If the attribute already exists on the ele… Written By Anonymous Tuesday, December 6, 2016 Add Comment Edit