FunEventThe FunEvent takes the element, the event type and a callback
Method | Description | parameters |
---|---|---|
event() | To set an event for an element | `selector:str , eventType:str, callBack:function` |
Event Type | Description |
---|---|
click | A mouse click event |
dblclick | A mouse double-click event |
mouseenter | The mouse enters an element |
mouseleave | The mouse leaves an element |
keydown | A keyboard key is pressed down |
keyup | A keyboard key is released |
focus | An element receives focus |
blur | An element loses focus |
submit | A form is submitted |
change | The value of an input field changes |
load | The page or an element finishes loading |
unload | The page or an element is being unloaded |
#
Click & Double Click Event
Lets alert a simple message by selecting our button and applying a click event on it.
React / Next.js Show Source Code