nerdexam
Microsoft

98-375 · Question #75

Which three events are valid for the HTML CANVAS element? (Choose three.)

The correct answer is A. scroll B. mouseup E. hover. B: You can also detect a mouse click on your canvas. Again, this is done with addEventListener. There are quite a few mouse events you can detect: mousedown, mouseup, mousemove, mouseout and mouseover. E: MouseHover Event Mouse Hover Event is a combination of two mouse events…

Understanding HTML5

Question

Which three events are valid for the HTML CANVAS element? (Choose three.)

Options

  • Ascroll
  • Bmouseup
  • Cblur
  • Ddatareceived
  • Ehover

How the community answered

(52 responses)
  • A
    75% (39)
  • C
    8% (4)
  • D
    17% (9)

Explanation

B: You can also detect a mouse click on your canvas. Again, this is done with addEventListener. There are quite a few mouse events you can detect: mousedown, mouseup, mousemove, mouseout and mouseover. E: MouseHover Event Mouse Hover Event is a combination of two mouse events MouseOver and MouseOut so it makes easier for the developer to handle the hover event easily. - If you want to target a touch-enabled device like an iPad, iPhone, Android tablet or phone, etc, then you need the touch events. These events are touchstart, touchend, touchcancel, touchleave,

Topics

#canvas element#mouse events#scroll#DOM events

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice