How to set the value of an attribute using JavaScript

How to set the value of an attribute using JavaScript

More to explore

Based on this image's title: “How to set the value of an attribute using JavaScript