click
=> When element is clicked by LMBkeypress
submit
focus
=> When focus on an elementDOMContentLoaded
=> HTML DOM loadedcontextmenu
=> RMB Clicktransitionend
dblclick
=> LMB Double clickmousedown
=> Mouse button pressedmouseup
=> Mouse button releasedmouseover
=> Cursor moved in an elementmouseout
=> Cursor moved out of an elementmousemove
touchstart
touchmove
touchend
const myEvent = new Event("myCustomEvent");
const myEvent = new Event("myCustomEvent", { bubbles: true, cancelable: true }); // Add properties
const myEvent = new CustomEvent("myCustomEvent", { detail: { namaste: "Dunia" } }); // To pass custom data with event
document.addEventListner("myCustomEvent", e => {
// statement
})
document.dispatchEvent(myEvent);