Atrybut zdarzenia onreset HTML
Przykład
Wykonaj JavaScript po kliknięciu przycisku Reset w formularzu:
<form onreset="myFunction()">
Enter name: <input type="text">
<input type="reset">
</form>
Definicja i użycie
Atrybut onreset jest uruchamiany, gdy formularz jest resetowany.
Obsługa przeglądarki
Event Attribute | |||||
---|---|---|---|---|---|
onreset | Yes | Yes | Yes | Yes | Yes |
Składnia
<element onreset="script">
Wartości atrybutów
Value | Description |
---|---|
script | The script to be run on onreset |
Szczegóły techniczne
Obsługiwane tagi HTML: | <formularz> |
---|
Powiązane strony
Odniesienie HTML DOM: zdarzenie onreset
❮ Atrybuty zdarzeń HTML