浏览器端asp脚本的问题
<head><!--<SCRIPTLANGUAGE="vbScript">suba()dimfrm2Setfrm2=Document.Formfrm2.inputb1.v...
<head>
<!--
<SCRIPT LANGUAGE="vbScript">
sub a()
dim frm2
Set frm2=Document.Form
frm2.inputb1.value = "aaa"
end sub
-->
</SCRIPT>
</head>
<body>
<fomr name=form1>
<input name=inputa1 onclick=a() value=test size=4 readonly>
<input name=inputb1 type=text value="" readonly>
</form></body>
为什么运行不成功啊 ? 展开
<!--
<SCRIPT LANGUAGE="vbScript">
sub a()
dim frm2
Set frm2=Document.Form
frm2.inputb1.value = "aaa"
end sub
-->
</SCRIPT>
</head>
<body>
<fomr name=form1>
<input name=inputa1 onclick=a() value=test size=4 readonly>
<input name=inputb1 type=text value="" readonly>
</form></body>
为什么运行不成功啊 ? 展开
展开全部
不知道你想干什么
form单词都写错~~另外上面的脚本是干什么的?
-------
<head>
<SCRIPT LANGUAGE="vbScript">
<!--
sub a()
dim frm2
//Set frm2=Document.Form
form1.inputb1.value = "aaa"
end sub
-->
</SCRIPT>
</head>
<body>
<form name="form1">
<input name="inputa1" type="button" onclick="a()" value="test" size="4" readonly>
<input name="inputb1" type="text" value="" readonly>
</form></body>
form单词都写错~~另外上面的脚本是干什么的?
-------
<head>
<SCRIPT LANGUAGE="vbScript">
<!--
sub a()
dim frm2
//Set frm2=Document.Form
form1.inputb1.value = "aaa"
end sub
-->
</SCRIPT>
</head>
<body>
<form name="form1">
<input name="inputa1" type="button" onclick="a()" value="test" size="4" readonly>
<input name="inputb1" type="text" value="" readonly>
</form></body>
2009-01-19
展开全部
改成
<head>
<SCRIPT LANGUAGE="vbScript">
function a()
dim frm2
Set frm2=Document.Form
frm2.inputb1.value = "aaa"
end sub
</SCRIPT>
</head>
....
<head>
<SCRIPT LANGUAGE="vbScript">
function a()
dim frm2
Set frm2=Document.Form
frm2.inputb1.value = "aaa"
end sub
</SCRIPT>
</head>
....
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询