编辑下面的代码:【加编码】
<html> <body> <button id="myBtn">Click me</button> <script type="text/vbscript"> document.getElementById("myBtn").onclick=GetRef("mySub") Sub mySub() alert("Hello world") End Sub </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂