JavaScript Assignment #12

Form Button and onClick

Create a very simple form that executes some JavaScript.

  1. Create a basic page in html that consists of a form input button. Do not use a submit button, because this button will not submit anywhere that needs to be processed.
  2. When the user clicks on the input button, change the background to "blue" using the document.bgColor property and the onClick event handler.
  3. Here is an input button example that you can use.

Next assignment ... Assignment #13