Skip to content

3wcircus/html-javascript-events-ic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

HTML front end JavaScript events IC

Exercise 1:

Create an HTML file with a button. Using JavaScript, each time a button is clicked use the array below to change the color of the Body background to the corresponding index. The colors do not have to start over once the last color is reached.

["blue", "red", "yellow", "brown", "orange", "purple", "black", "green"]

BONUS Challenges:

Make the colors recycle once the last color is reached.

Exercise 2:

Create an HTML page containing 3 different buttons, one saying GREEN, one saying YELLOW, and one saying YELLOW. When the User holds the mouse over one of the buttons, change the background color according to the text value on the button.

BONUS Challenges:
  • Add header text that states the current Color (e.g. !The current Color is SELECTEDCOLOR' with the name of the current color in place of SELECTEDCOLOR

About

HTML front end JavaScript events IC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published