Chapter 15. Working with the Mouse, Keyboard, and Images


graphics/chic01.gif

In this chapter, we're going to see some favorite JavaScript topicsworking with the mouse, keyboard, images, and handling events in depth. Most visual elements support mouse and keyboard events; to see how they work, we'll enable the document object's mouse and keyboard events in this chapter so that you can use the keyboard and mouse anywhere in the entire page.

As we work with the mouse and keyboard, we'll find that the real keynote for this chapter is event handling. The event handling we'll see in this chapter has changed radically as browser versions have changed, and we'll have to take several different event object models into account in our code. In fact, that's the best place to start this discussionwith an overview of working with events in depth.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net