vbscript和javascript的问题?
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script language="vbscript">
<!--
function Myuser()
if len(form1.username.value)=0 then
MsgBox("用户名不能为空!")
Myuser=false
else
Myuser=true
end if
end function
-->
</script>
<body>
<form id="form1" name="form1" method="post">
用户名:<input name="username" type="text" id="username"/>
<br>
密码:<input name="userpwd" type="text"/>
<br>
<input type="submit" name="submit" value="提交" onClick="javascript:return Myuser()" />
<input type="reset" name="submit2" value="取消"/>
</form>
</body>
</html>
定义一个function过程
这里定义的是一个vbscript过程,
但是调用此过程的时间确用的是javascript:return Myuser()
而且少一个分号,还有不明白的就是vbscript是不区分大小写字母的
但javascript是区分大小写字母的.在调用时还必需区分大小写字母.
这又遵循了javascript的准则.不明白这是怎么一会事.请高人指点?