这段代码为何出错???????
cclxj 2001-03-21 05:46:00
在以下test.asp代码运行时,为何出现“对象‘document.form1’不支持此属性或方法"
<html>
<head>
<script language=vbscript>
<!--
sub button1_onclick()
if document.form1.text1.value="" then
msgbox"please input item"
end if
end sub
-->
</script>
<form id="form1" action="test.asp" name="form1">
response.write"<input type='button' name='button1' onclick='button1_onclick'>"
response.write“<input type='text' name='text1' >”
</form>
</head>
</html>