Events triggered by actions inside a HTML form (applies to almost all HTML elements, but is most used in form
elements):
Attribute | Description |
onblur | Fires the moment that the element loses focus |
onchange | Fires the moment when the value of the element is changed |
oncontextmenu | Script to be run when a context menu is triggered |
onfocus | Fires the moment when the element gets focus |
oninput | Script to be run when an element gets user input |
oninvalid | Script to be run when an element is invalid |
onreset | Fires when the Reset button in a form is clicked |
onsearch | Fires when the user writes something in a search field (for ) |
onselect | Fires after some text has been selected in an element |
onsubmit | Fires when a form is submitted |
Attribute | Description |
onkeydown | Fires when a user is pressing a key |
onkeypress | Fires when a user presses a key |
onkeyup | Fires when a user releases a key |
JSON (JavaScript Object Notation) is a lightweight data-interchange format widely used in web development. At…
AJAX (Asynchronous JavaScript and XML) is a powerful technique used in modern web development that…
Introduction After successfully optimizing your website for speed, it's essential to maintain and build upon…
Securing your WordPress folders is crucial to safeguarding your website from unauthorized access and potential…
Creating a file upload feature with a circular progress bar involves multiple steps. You'll need…
Integrating WP Rocket with AWS CloudFront CDN helps to optimize and deliver your website content…