Dup Goto 📝

MouseEvents

PT2/webdev/react/basics 07-31 13:46:49
To Pop
17 lines, 151 words, 1020 chars Monday 2023-07-31 13:46:49

See this medium.com article and w3schools

Ultimately, aside from using onClick rather than onclick, it is just Javascript mouse events. Thus look to this w3schools article on DOM mouse events

event description
onclick A user clicks on an element
oncontextmenu A user right-clicks on an element
ondblclick A user double-clicks on an element
onmousedown A mouse button is pressed over an element
onmouseenter The mouse pointer moves into an element
onmouseleave The mouse pointer moves out of an element
onmousemove The mouse pointer moves over an element
onmouseout The mouse pointer moves out of an element
onmouseover The mouse pointer moves onto an element
onmouseup A mouse button is released over an element