are actions or occurrences that happen in the web browser.
Events
Clicking a button, typing on the keyboard, moving the mouse, etc.
User Actions
Page loading or unloading, resizing the browser window, etc.
Browser Actions
These are events triggered by the JavaScript code itself, such as simulating a click.
Programmatic Triggers
What are the event types
Mouse Events
Keyboard Events
Click Events
Change Events
These events occur when the user interacts with the mouse or a pointing device.
Mouse Events
Triggered when the user clicks an element.
click
Triggered when the user double-clicks.
dblclick
Triggered when the mouse pointer moves over an element.
mouseover
Triggered when the mouse pointer leaves an element.
mouseout
These occur when the user interacts with the keyboard.
Keyboard Events
Fired when the user presses a key (except for special keys like Shift or Ctrl).
keypress
Fired when any key is pressed down.
keydown
Fired when the user releases a key.
keyup
These are specific to clicks and are part of mouse events. They are triggered when a user clicks on an element (such as a button or link).
Click Events
These are triggered when the value of an input, select, or textarea element changes. It helps in detecting when the user changes the value in a form element.
Change Events