![How to change the background color after clicking the button in JavaScript ? | by Ankan Das | Medium How to change the background color after clicking the button in JavaScript ? | by Ankan Das | Medium](https://miro.medium.com/v2/resize:fit:1400/1*H4dqjF6VRPPwu5eZSymRHA.png)
How to change the background color after clicking the button in JavaScript ? | by Ankan Das | Medium
![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. #
![javascript - How do I change the background color of a DIV with a function using a button with 'IF' conditions - Stack Overflow javascript - How do I change the background color of a DIV with a function using a button with 'IF' conditions - Stack Overflow](https://i.stack.imgur.com/ChgY8.png)
javascript - How do I change the background color of a DIV with a function using a button with 'IF' conditions - Stack Overflow
![change background color on button click in javascript Archives - Orange County Website Design Development | Digital Marketing change background color on button click in javascript Archives - Orange County Website Design Development | Digital Marketing](https://www.altdatum.com/wp-content/uploads/2019/10/Change-Background-Shade-On-Click-Button-HTML-CSS-and.jpg)