O'Reilly logo

Inside JavaScript by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

Working with the Mouse, Keyboard, and Images

In this chapter, we’re going to see some favorite JavaScript topics—working 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required