• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Mouse

We saw the available mouse events, such as the available keyboard events, in Chapter 6, including which browser supports which events. (For example, the onmousewheel event is currently supported only by Internet Explorer 6.0.) Here’s an overview of these events:

  • onmousedown. Occurs when the primary mouse button mouse is pressed.

  • onmouseenter. Occurs when the mouse enters an object. This event was new in Internet Explorer 5.5 and is an alternative to onmouseover.

  • onmouseleave. Occurs when the mouse leaves an object. This event was new in Internet Explorer 5.5 and is an alternative to onmouseout.

  • onmousemove. Occurs when the mouse moves.

  • onmouseout. Occurs when the mouse leaves an object (just like onmouseleave).

  • onmouseover. Occurs when the mouse enters an object (just like onmouseenter).

  • onmouseup. Occurs when the primary mouse button is released.

  • onmousewheel. Occurs when the mouse wheel button is rotated.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint