A simple and interactive web application that allows users to change the background color dynamically with a single click.
BgColorApp is a beginner-friendly project designed to demonstrate how JavaScript can be used to manipulate the DOM and dynamically update UI elements.
With just a click, users can generate and apply random background colors, making it a fun and interactive experience.
- 🎨 Change background color instantly
- 🔁 Generate random colors on each click
- ⚡ Lightweight and fast
- 📱 Responsive design
- 🧠 Beginner-friendly code structure
- HTML5 – Structure
- CSS3 – Styling
- JavaScript (Vanilla JS) – Functionality
BgColorApp/ │── index.html │── style.css │── script.js
Follow these steps to run the project locally:
git clone https://github.com/deepthinkss/BgColorApp.git 2. Navigate to the project folder cd BgColorApp 3. Open in browser
Simply open index.html in your browser.
💡 How It Works A button triggers a JavaScript function The function generates a random color (HEX/RGB) The background color of the page is updated dynamically 📸 Screenshot
(Add screenshot here if available)
🤝 Contributing
Contributions are welcome!
Fork the repository Create a new branch Make your changes Submit a pull request 📄 License
This project is open-source and available under the MIT License.
🙌 Acknowledgements Inspired by beginner JavaScript projects Great for learning DOM manipulation 👨💻 Author Deep Pramod Thakur GitHub: @deepthinkss
If you want, I can customize it exactly based on your actual code (buttons, random HEX, RGB, etc.)—just paste your script.js or project files 👍
::contentReference[oaicite:0]{index=0}