La propriété GlobalEventHandlers.onreset
contient un EventHandler
(gestionnaire d'évènements) déclenché quand un évènement reset
est reçu.
Syntaxe
window.onreset = funcRef;
Paramètres
funcRef
est une référence à une fonction.
Exemple
<html> <script> function reg() { window.captureEvents(Event.RESET); window.onreset = hit; } function hit() { alert('hit'); } </script> <body onload="reg();"> <form> <input type="reset" value="reset" /> </form> <div id="d"> </div> </body> </html>
Notes
L'évènement reset
est déclenché quand l'utilisateur clique sur le bouton de réinitialisation dans un formulaire (<input type="reset"/>
).
Spécification
Spécification | Statut | Commentaire |
---|---|---|
HTML Living Standard La définition de 'onreset' dans cette spécification. |
Standard évolutif |
Compatibilité des navigateurs
Nous convertissons les données de compatibilité dans un format JSON.
Ce tableau de compatibilité utilise encore l'ancien format
car nous n'avons pas encore converti les données qu'il contient.
Vous pouvez nous aider en contribuant !
Fonctionnalité | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | (Oui) | (Oui) | ? | ? | ? | ? |
Fonctionnalité | Android | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|---|
Basic support | ? | (Oui) | (Oui) | (Oui) | ? | ? | ? | ? | ? |