FunEventThe FunEvent takes the element, the event type and a callback
MethodDescriptionparameters
event()
To set an event for an element`selector:str , eventType:str, callBack:function`
Event TypeDescription
clickA mouse click event
dblclickA mouse double-click event
mouseenterThe mouse enters an element
mouseleaveThe mouse leaves an element
keydownA keyboard key is pressed down
keyupA keyboard key is released
focusAn element receives focus
blurAn element loses focus
submitA form is submitted
changeThe value of an input field changes
loadThe page or an element finishes loading
unloadThe 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