HTML HTML Event Attributes HTML Form Events

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Events triggered by actions inside a HTML form (applies to almost all HTML elements, but is most used in form elements):

AttributeDescription
onblurFires the moment that the element loses focus
onchangeFires the moment when the value of the element is changed
oncontextmenuScript to be run when a context menu is triggered
onfocusFires the moment when the element gets focus
oninputScript to be run when an element gets user input
oninvalidScript to be run when an element is invalid
onresetFires when the Reset button in a form is clicked
onsearchFires when the user writes something in a search field (for <input="search">)
onselectFires after some text has been selected in an element
onsubmitFires when a form is submitted


Got any HTML Question?