set href attribute javascript 30 Set Href Attribute Javascript The setAttribute () method is used to set an attribute on the specified element. If the attribute already exists on the ele… Written By Susan R. Robinson Sunday, February 16, 2020 Add Comment Edit