复制代码
- <html>
- <head>
- <hta:application id="invbs" applicationname="13" scroll="no"/>
- </head>
- <body>
- <input type="button" name="button1" value="load" />
- <script language="vbscript">
- function f()
- msgbox "hello world"
- end function
- Set button1.onclick = getref("f")
- 'getref 函数把定义的过程(指function过程和sub过程)绑定到一个事件。
- </script>
- </body>
- </html>
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |