Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turnPurple()
- {
- document.getElementById('colorDiv').style.backgroundColor = 'purple';
- }
- function turnGreen()
- {
- document.getElementById('colorDiv').style.backgroundColor = 'green';
- }
- function turnOrange()
- {
- document.getElementById('colorDiv').style.backgroundColor = 'orange';
- }
- function turnRed()
- {
- document.getElementById('colorDiv').style.backgroundColor = 'red';
- }
- function turnBlue()
- {
- document.getElementById('colorDiv').style.backgroundColor = 'blue';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement