onreset (attributo evento HTML) si attiva quando l’utente fa il reset di un form.
|
tag |
|---|
Sintassi
onreset = "[script]"
Esempi
<script>
function Funzione() {
alert("Modulo azzerato");
}
</script>
<form onreset="Funzione()">
<input type="text" placeholder="Inserisci un testo e poi premi il tasto reset">
<button type="reset">cancella</button>
</form>
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment