diff --git a/2-ui/2-events/01-introduction-browser-events/article.md b/2-ui/2-events/01-introduction-browser-events/article.md index 19394e49e..bf6b015ea 100644 --- a/2-ui/2-events/01-introduction-browser-events/article.md +++ b/2-ui/2-events/01-introduction-browser-events/article.md @@ -1,93 +1,92 @@ -# Introduction to browser events +# Introduzione agli eventi del browser -*An event* is a signal that something has happened. All DOM nodes generate such signals (but events are not limited to DOM). +*Un evento* è un segnale che sta ad indicare che è avvenuto qualcosa. Tutti i nodi DOM generano questi segnali (anche se gli eventi non sono limitati al DOM). -Here's a list of the most useful DOM events, just to take a look at: +Ecco quindi una lista, degli eventi DOM più utili: -**Mouse events:** -- `click` -- when the mouse clicks on an element (touchscreen devices generate it on a tap). -- `contextmenu` -- when the mouse right-clicks on an element. -- `mouseover` / `mouseout` -- when the mouse cursor comes over / leaves an element. -- `mousedown` / `mouseup` -- when the mouse button is pressed / released over an element. -- `mousemove` -- when the mouse is moved. +**Eventi del mouse:** +- `click` -- quando si clicca col mouse su un elemento (i dispositivi touch lo generano tramite il tocco). +- `contextmenu` -- quando si clicca col tasto destro su un elemento. +- `mouseover` / `mouseout` -- quando il cursore passa sopra/abbandona un elemento. +- `mousedown` / `mouseup` -- quando viene premuto/rilasciato il pulsante del mouse su un elemento. +- `mousemove` -- quando si sposta il mouse. -**Keyboard events:** -- `keydown` and `keyup` -- when a keyboard key is pressed and released. +**Eventi da tastiera:** +- `keydown` e `keyup` -- quando viene premuto e rilasciato un tasto. -**Form element events:** -- `submit` -- when the visitor submits a `