View on GitHub

reading-notes

Duckett HTML Ch. 7 Forms (p.144-175)

Form Controls

How Forms Work

  1. A user fills in a form and then presses a button to submit the information to the server.

  2. The name of each form control is sent to the server along with the value the user enters or selects.

  3. The server processes the information using a progamming language such as PHP, C#, vb.net or java. It may also store the information in a database.

  4. The server creates a new page to send back to the browser based on the information received

Form Structure

Text input

Password input

Duckett HTML Ch. 14 Lists, Tables & Forms (p.330-357)

Duckett JS Ch. 6 Events (p.243-292)

Different Types of events

How Events Trigger JavaScript Code

  1. Select element node(s) you want the script to respond to.
  2. Indicate which event on the selected node(s) will trigger the respose
  3. State the code you want to run when the event occurs

Three Ways To Bind An Event To An Element

  1. HTML Event Handlers
    • THIS IS BAD PROCTICE DO NOT USE
  2. Traditional DOM Event Handlers

  3. DOM level 2 Event Listeners

Back to Homepage