HTML and CSS Reference
EXAMPLE 11.10 ( CONTINUED )
Enter your user id:
Type your password:
dialog box. If the user clicks OK, a true value will be returned and the form will
be submitted. If the user clicks Cancel, false will be returned, and the form will be
stopped (see Figure 11.19).
The form starts here. When submitted, it will go to the server-side CGI program.
The URL of the CGI program is assigned to the action attribute of the HTML
The input types for this form are a text field and a password field.
When the user clicks the submit button, the onClick event handler is triggered. It
Figure 11.19 Submitting a form and the onClick event.