How to change the background color after clicking the button in To change color in JavaScript, do this: element.style.color = 'red'. To run the above program, save the file name anyName.html (index.html) and right click on the file and select the option open with live server in VS code editor. The new ctx.fillStyle uses the same random color. // How to Create a Random Color Generator (HTML & Javascript) and a Little CSS // I use Atom Free Editor in the video and the Emmet plugin for Atom. You can link to a private theme in a tag, or you can put the private theme in a