WDV221 Intro Javascript

Skill Test - Setting Preferences

Instructions: Change background colors:

  1. Modify the page as needed to change the background color when a different color is selected.
  2. Use the changeColor( ) function to change the background color when a button is selected.

Instructions: Change font selection:

  1. Create an array called pageFonts that contains at least three fonts.
  2. Use javascript to populate a drop down list of available fonts.
  3. Create a function that will allow the user to select the font of their choice. Once selected, all text on the page will change to the selected font.

Choose your font: