This is a mini project built with vanilla HTML, CSS, and JavaScript. It allows you to change the background color of an element dynamically.
This project demonstrates how to dynamically change the background color of an element using JavaScript. It generates random RGB values and applies them as the background color when a button is clicked.
- Generates random RGB values for the background color.
- Updates the background color of an element on button click.
- Provides a simple example of DOM manipulation with JavaScript.
- Open
https://dvzzdev.github.io/BG-Changer/
in your browser. - Click the "Change Color" button to see the background color change.
- HTML
- CSS
- JavaScript (vanilla)