about 9 years ago
The onreset is used event when we want to reset a form. it allows users to clear checkboxes or input field which refreshes the whole form.
Syntax onreset = "JavascriptCode"
<!DOCTYPE html> <html> <head> <script> function sample() { alert("This alert box will trigger if u keep checkbox empty "); } </script> </head> <body> <form onreset="sample()"> <label>Username</label> <input type="text" size="20"> <label>Password</label> <input type="password" size="10"> <input type="reset"> </form> </body> </html>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)