试试这两个
<html>
<body>
<hr color="blue">
<input type="button" name="button" value="click to test the code 1" onClick="button('aaa!')">
<br>
<input type="button" name="button" value="click to test the code 2" onClick="button('bbb!')">
<script language="VBScript">
sub button(str)
msgbox str, 0, "tester result"
end sub
</script>
</body>
</html>
<html>
<body>
<hr color="blue">
<input type="button" name="button" value="click to test the code 1" onClick="button1('aaa!')">
<br>
<input type="button" name="button" value="click to test the code 2" onClick="button2('bbb!')">
<script language="VBScript">
sub button1(str)
msgbox str, 0, "tester result 1"
end sub
sub button2(str)
msgbox str, 0, "tester result 2"
end sub
</script>
</body>
</html>