How to fill the color in SVG Javascript code example Example: change fill color using javascript <button onclick="circle1.style.fill='yellow';">