<%
dim test="www";
%>
<input type="submit" value="提交" name="A" onclick="javascript:save(<%=test%>);">
</form>
</body>
</html>
改成这样试试
dim test="www";
%>
<input type="submit" value="提交" name="A" onclick="javascript:save(<%=test%>);">
</form>
</body>
</html>
改成这样试试
改成onclick="javascript:save('<%=test%>');">试试
一句中,<%=test%>需要加上引号。另外,出错可能是你提交到的页面出的错----你的<form method="POST" action="--WEBBOT-SELF--">中action 指向的页面可能有问题。检查一下吧。