Ejemplo de evento HTML de JavaScript
- Página anterior Objeto HTML JS
- Página siguiente Navegador JS
Examples of using JavaScript to react to events.
Input events
- onblur - When the user leaves the input field
- onchange - When the user changes the content of the input field
- onchange - When the user selects a dropdown value
- onfocus - When the input field gains focus
- onselect - When the input text is selected
- onsubmit - When the user clicks the submit button
- onreset - When the user clicks the reset button
- onkeydown - When the user presses/holds down a key
- onkeypress - When the user presses/holds down a key
- onkeyup - When the user releases a key
- onkeyup - When the user releases a key
- onkeydown vs onkeyup - Both
Mouse events
- onmouseover/onmouseout - When the mouse passes over an element
- onmousedown/onmouseup - Al pulsar/levantar el botón del ratón
- onmousedown - Al pulsar el ratón: sugerencia sobre qué elemento se hizo clic
- onmousedown - Al hacer clic con el ratón: sugerencia sobre qué botón se hizo clic
- onmousemove/onmouseout - Al mover el puntero del ratón sobre/dentro del div
- onmouseover/onmouseout - Al mover el puntero del ratón sobre/dentro de la imagen
- onmouseover - Al mantener el ratón sobre el mapa de imágenes
Evento de clic
Eventos de carga
Otro
- Página anterior Objeto HTML JS
- Página siguiente Navegador JS