User Tools

Site Tools


eg-259:review:js_html2

JavaScript and HTML Documents: Part 2

Adapted from: Robert W. Sebasta, Programming the World-Wide Web, 3rd Edition, Addison Wesley, 2006. Supporting: Contact Hour 13.

  1. What is the disadvantage of assigning event handlers to event properties?
  2. What are the advantages of assigning event handlers to event properties?
  3. Why is it good to use JavaScript to check the validity of form inputs before the form data is sent to the server?
  4. What three things should be done when a form input element is found to have incorrectly formatted data?
  5. What exactly does the focus function do?
  6. What exactly does the select function do?
  7. What happens when an event handler for the onsubmit event returns false?
  8. What event is used to trigger an event handler that checks the validity of input for a text button in a form?
  9. What event propagation takes place in the DOM 0 event model?
  10. Explain the three phases of event processing in the DOM 2 event model.
  11. Give two examples of default actions of events.
  12. Explain the first two parameters of the addEventListener method.
  13. How is an event handler registered so that it will he called during the capturing phase?
  14. How can an event handler be unregistered?
  15. What exactly do the clientX and clientY properties store?
  16. What purpose does the navigator object have?

More Review Questions

eg-259/review/js_html2.txt · Last modified: 2012/02/17 15:58 by eechris