示例<!doctype html><html> <body> <form onreset = "display()"> student name:<br> <input type = "text" name = "sname"> <br> student subject:<br> <input type = "text" name = "ssubject"> <br> <input type = "reset" value = "reset"> </form> <script> function display() { alert("form reset successfull!"); } </script> </body></html>
以上就是当在html中点击表单中的重置按钮时执行脚本?的详细内容。
