This shows some uses of the onClick event


Make background beige
Make font blue
Change the background color
Change the font color
Click here to change the top image!
Click here to change the top image back!
Note: Return false is another way to tell the browser not to follow the link given.
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.
Change the background color
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.