Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy HTML onreset attribute</title> <body> <form onreset="OnReset()">Wikitechy Tutorials: <input type="text"> <input type="reset"> </form> <script> function OnReset() { alert ("Wikitechy form has been reseted!"); } </script> </body> </html>
Result