The wisest prophets make sure of the event first.
Do you think I can listen all day to such stuff?
The user should feel in control of the computer; not the other way around. This is achieved in applications that embody three qualities: responsiveness, permissiveness, and consistency.
—Inside Macintosh, Volume 1 Apple Computer, Inc., 1985
We are responsible for actions performed in response to circumstances for which we are not responsible.
In this chapter you’ll:
• Learn the concepts of events, event handlers and event bubbling.
• Create and register event handlers that respond to mouse and keyboard events.
• Use the
event object to get information ...