CSS Portal
Run
Search
« Back to
HTML onreset Event Attribute
<!DOCTYPE html> <html> <head> <title>onreset event</title> </head> <body> <form onreset="testFunction()"> Enter something and discard:<br> <input type="text" name="info"><br> <input type="reset"> </form> <script> function testFunction() { alert ("EXAMPLE: The form has been reset!"); } </script> </body> </html>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee