HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The onreset attribute fires when a form is reset."
The onreset
attribute fires when a form is reset.
The onreset
attribute is part of the Event Attributes, and can be used on the following element:
Execute a JavaScript when the Reset button in a form is clicked:
<form onreset="myFunction()">
Enter name: <input type="text">
<input type="reset">
</form>
Event Attribute | |||||
---|---|---|---|---|---|
onreset | Yes | Yes | Yes | Yes | Yes |