html中为button加点击事件

<input type = "button" onclick = "btnRst_Click()" value = "重置" >
                        <script>
                            function btnRst_Click() {
                                alert("事件");
                            }
                        </script>                   
                </input>

原文地址:https://www.cnblogs.com/gates/p/3122301.html