HTML and CSS Reference
In-Depth Information
another window and display the form data, do some simple validation, and so on. After
going through this chapter, you should know:
1. What the DOM tree looks like to JavaScript.
2. Why we use the Legacy DOM with forms.
3. How to create HTML forms and input devices.
4. What two methods are used to send data to a server.
5. How the browser bundles up the input data.
6. What name/value pairs represent in forms.
7. What a server-side program does.
8. How the form object and the elements object are used.
9. When to use the name and the id attributes. How do they differ?
10. How to catch a form before it is submitted to a server.
11. How to reference the input devices in a JavaScript function.
12. How to stop form data from being submitted.
13. How to program input devices/controls.
14. How the this keyword is used with forms.
15. How the button input device differs from the submit button.
16. How to use an event handler with a form.
17. How the form's submit() method differs from the onSubmit event handler.
18. How to change the text in a textbox with JavaScript.
19. What the blur() and focus() methods do.
20. How to use multiple selects.
21. How the selectedIndex property works with drop-down menus.
22. How to test for input that does not contain alphabetic data.
23. How JavaScript can tell which button was selected in a list of radio buttons.
ExerciseseeExExercisesdddEeeeee
Search WWH ::




Custom Search