For this assignment, you will write several Web pages that contain JavaScripts. Write each one of these is a separate file. When you save the file, be sure to save it as ".htm" or ".html" and that you choose File Type: to be All Files.
Here's an example:
Last week, you wrote a script that prompted the viewer to enter colors
and then
changed the colors on the page. Redo that exercise, using buttons instead of
prompts:
Use one set of buttons to allow
the user to select a color for the background.
Use another set of buttons to allow the user to set a color
for the text.
Each set of buttons should be in its own form.
You will need one form for the buttons to set the background
color, and another form for the buttons to set the text color.
You do not have to supply many choices. Two choices for each (a total of
four buttons)
is enough, but of course you may offer more if you like.
Make sure that your page contains some text also
so that you can see that the color
of the text gets changed properly!
If you are ambitious, you can also include buttons to set the
link color and the visited link color.