Events for forms

Here are some of the event attributes associated with forms:

Name When activated
onfocus the cursor is on a field
onblur the cursor is moved away from a field
onchange a field is changed

The onsubmit event will not be used in this course, since we will not be submitting information to a server.

Note:

Hints:

  • undefined
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX