<h1> tag and should display
the text ``This is fun!''. The text box should initially contain the
number 0. If the user clicks on a button have the background of the
header change color to the color specified on the button. Also, each
time a button is clicked increment the value stored in the text box.
If you define more than one event handler then demonstrate both static
and dynamic event registration. HINT #1: To create a button that is not
a submit button use <input type="button" />. HINT #2: If x
is a reference to a form element then x.style.background="#000000"
will set it to black.
Write an HTML form (along with Javascript code) that contains a text box that requests a FSSN. When the form is submitted call a validation function that verfies that:
If the validation fails the form should not be submitted and an alert box should be displayed listing the reason that validation failed. element already exists on the page). If the validation succeeds then the form submission should proceed. (It doesn't matter what action you assign to the form ...).