- <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>
复制代码
|