Ví dụ về sự kiện onreset Code: <!DOCTYPE html> <html> <body> <p>Khi bạn reset form, một hàm sẽ được kích hoạt và hiển thị thông báo.</p> <form onreset="myFunction()"> Nhập tên: <input type="text"> <input type="reset"> </form> <script> function myFunction() { alert("Form đã được reset"); } </script> </body> </html> Kết quả: