Home HTML Tutorial for beginners 18 HTML events

18 HTML events

10
0

We have already discussed a mouse event onClick on our previous example. here briefly we will discuss some more events and their use.

onClick Triggers on a mouse click
ondblclick Triggers on mouse double click
ondrag triggers when an element is dragged
ondrop triggers when an dragged element is dropped
onmousedown triggers when a mouse button is pressed
onmouseout triggers when a mouse pointer moves out of an element
onmouseover triggers when a mouse pointer moves over an element
onmouseup triggers when a mouse button is released
onmousewheel triggers when the mouse wheel is rotated
onscroll triggers when an elements scrollbar is scrolled

Like previous example you can try these above mouse events. Like these so many other events are there like form events, window events, keyboard events and media events.

LEAVE A REPLY

Please enter your comment!
Please enter your name here