Which method is used to attach an event handler function to an HTML element when the left, middle or right mouse button is pressed down, while the mouse is over the HTML element?

32. Which method is used to attach an event handler function to an HTML element when the left, middle or right mouse button is pressed down, while the mouse is over the HTML element?

  1. mousedown()
  2. mouseover()
  3. mousepress()
  4. mousekey()

Answer: A) mousedown()

Explanation:

The jQuery method mousedown() is used to attach an event handler function to an HTML element when the left, middle or right mouse button is pressed down, while the mouse is over the HTML element.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.