how to use setattribute in javascript 24 How To Use Setattribute In Javascript This will work regardless how the SVG is added to the page or where the JS is. Note that these functions are slightly diffe… Written By Anonymous Sunday, October 4, 2020 Add Comment Edit