Write down the different mouse events used in JavaScript.

Hi, I have a question and I hope anyone could answer it:

Write down the different mouse events used in JavaScript.

1 Answer

  1. Answer:
    Different mouse events and their description is given below

    Event Description
    onClick It occurs when the user clicks on an object by using a mouse
    on mouse enter It occurs when the mouse pointer is moved onto an object
    on mouse leave It occurs when the mouse pointer is moved out of an object
    onKeyDown It occurs when the user presses a key on the keyboard
    on KeyUp It occurs when the user releases a key on the keyboard

You must login to add an answer.

Related Questions