![HTML, CSS, Javascript: add click events to buttons with JS, use them to change bg color of webpage - YouTube HTML, CSS, Javascript: add click events to buttons with JS, use them to change bg color of webpage - YouTube](https://i.ytimg.com/vi/jBGRAeolHtU/maxresdefault.jpg)
HTML, CSS, Javascript: add click events to buttons with JS, use them to change bg color of webpage - YouTube
![sarai on X: "Day 41 of #javascript| Today: - Made background color change when button is clicked. - Made innerHTML/text of button change when clicked. Video on how I did it below. # sarai on X: "Day 41 of #javascript| Today: - Made background color change when button is clicked. - Made innerHTML/text of button change when clicked. Video on how I did it below. #](https://pbs.twimg.com/media/FcHLvHEWIAAC_dX.jpg:large)
sarai on X: "Day 41 of #javascript| Today: - Made background color change when button is clicked. - Made innerHTML/text of button change when clicked. Video on how I did it below. #
![How to use an array of colors to change the button background color on the button press using one handleChange (Hooks) - DEV Community How to use an array of colors to change the button background color on the button press using one handleChange (Hooks) - DEV Community](https://res.cloudinary.com/practicaldev/image/fetch/s--DzcrX9zG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxbnqem712yua89pgjhz.png)
How to use an array of colors to change the button background color on the button press using one handleChange (Hooks) - DEV Community
![javascript - Change Target Value button to change color for each button from value comparison - Stack Overflow javascript - Change Target Value button to change color for each button from value comparison - Stack Overflow](https://i.stack.imgur.com/06s3c.png)