This shows some uses of the onclick event

CIS

Click here to make background yellow


Click here to make font blue






The Prompt puts up a box where the user can enter input. Note that in the prompt I have some words that will become the title, then I entered a comma and two quotes together. The two quotes together make the box where I want the user to enter information blank. If I wanted to put a default in the user entry line I could put in between the quotes.

Note also that there are two things that I want to do on the click event, one is to get the user to pick a color or in this case, go with the default. The other is to use that color to change the background. The double quotes are around both of these.