Assignment 8


This web page is dedicated to the novel David Copperfield by Charles Dickens. First published in 1850, it
originally appeared in serial form. David Copperfield is the most autobiographical of Dickens' many novels.

Copperfield character

This is a FORM tag that uses a post method to collect and store information from visitors of a web site.The action attribute identifies the URL of the form processing program. The name of this form is TROTWOOD and the validation function is called WATERBROOK().

<form method="post"
action="http://www.ed2go.com/cgi-bin/formpost.cgi"
name="trotwood"
onsubmit="return waterbrook()">

David's eccentric Aunt
Betsey nicknames David,
Trotwood Copperfield, later
referring to him as Trot.

While away at Salem
House, David meets a
boy named James.

What is James' last name?

This is a statement written in Java Script. It will tell the validation function to perform a test on a text box named STEERFORTH. STEERFORTH is a required field and must be filled out. If the text box is left blank, an alert box will appear and inform the visitor that there is an error and to try again.

if (document.trotwood.steerforth.value == "")
{
    alert ("Error. Try again.");
    return false;
}
Copperfield Character
Copperfield character

This is a statement written in Java Script. It will tell the validation function to perform a test on a check box named WICKFIELD. WICKFIELD is a required field and must be filled out. If the check box is left blank, an alert box will appear and nicely inform the visitor that this box must be checked.

if (document.trotwood.wickfield.checked == false)
{
    alert ("Check the box, please!");
    return false;
}

David Copperfield's character
Uriah Heep becomes
Mr. Wickfield's partner
through blackmail. He then schemes to marry Agnes,
Mr. Wickfield's daughter, and take control of the family fortune.

If you believe this to be true, check this box.



This site is for EDUCATIONAL purposes only. No data from this form or site is collected or saved.

Assignment 1
Intro to Tables
Assignment 2
Designing with Tables
Assignment 3
Creating Structure
Assignment 4
Frame Basics
Assignment 5
Designing with Frames
Assignment 6
Intro to Forms
Assignment 7
Buttons, Boxes and Lists
Home
Home Page
Assignment 9
Adding Audio
Assignment 10
Intro to CSS
Assignment 11
Using CSS
Assignment 12
CSS Application
Hosted by www.Geocities.ws

1