1.在</head >前
<script language="vbscript">
<!--
sub button1_onclick
msgbox "hello ,you click here"
end sub
-->
</script>
在<body>
<form>
<input name="button1" type="button" value="please click here ">
</form>
2,<script language="vbscript">
<!--
sub b1()
msgbox "welcome"
end sub
-->
</script>
<form> <input name="button1" type="button" value="click here" onclick="b1()"></form>
3 little use
<script language="vbscript" event="onclick" for="button1">
msgbox "welcome"
</script>
<form><input name="button1" type="button" value="click here"></form>
本文介绍如何使用VBScript为HTML页面中的按钮添加点击事件,包括直接在按钮上触发消息框显示、定义函数处理点击事件及直接在脚本标签内处理事件的方法。
294

被折叠的 条评论
为什么被折叠?



