FIRE OR ARE RAISED
When an event has occurred, it is often called having fired or been raised.
EVENTS TRIGGER
Events are said to t rigger a function or script. When the click event fires on the element in this diagram, it could trigger a script that enlarges the selected item.
MOUSE EVENTS , Occur when a user interacts with a mouse. trackpad, or touchscreen.
UI EVENTS , Occur when a user interacts with the browser’s user interface (UI) rather than the web page.
KEYBOARD EVENTS , Occur when a user interacts with the keyboard.
HTML EVENT HANDLER ATTRIBUTES
TRADITIONAL DOM EVENT HANDLERS
USING DOM EVENT HANDLERS
Event listeners are among the most frequently used JavaScript structures in web design. They allow us to add interactive functionality to HTML elements by “listening” to different events that take place on the page, such as when the user clicks a button, presses a key, or when an element loads.
Event flow : is the order in which event is received on the web page. If you click on an element like on div or on the button , which is nested to other elements, before the click is performed on the target element.
<form>
<form>
element is a container for different types of input elements, such as: text fields, checkboxes, radio buttons, submit buttons, etc.<input>
element is the most used form element.<input>
element can be displayed in many ways, depending on the type attribute.
<label>
element in the example above.<select>
, A drop down list box (also known as a select box) allows users to select one option from a drop down list.<form>
element.