Baseline Widely available
La propriété GlobalEventHandlers.onreset
contient Un gestionnaire d'évènement déclenché quand un évènement reset
est reçu.
window.onreset = funcRef;
Paramètres
funcRef
est une référence à une fonction.<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"/>
).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4