index 页面中
<form name="form7" method="post" action="jieshou.asp">
<input name="UName" type="text" />
<textarea id="Content" name="Content" style="display:none"></textarea>
<iframe ID="Editor" name="Editor" src="newEditor/HtmlEditor_new/index.html?ID=content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:335px;width:600px"></iframe>
<input name="submit" type="submit" value="提交">
</form>
jieshou页面中可以接收到 request.form("UName")和request.form("Content") 的值
而换成
<script language="javascript">
function XXX()
{
document.form7.submit();
}
</script>
<form name="form7" method="post" action="jieshou.asp">
<input name="UName" type="text" />
<textarea id="Content" name="Content" style="display:none"></textarea>
<iframe ID="Editor" name="Editor" src="newEditor/HtmlEditor_new/index.html?ID=content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:335px;width:600px"></iframe>
<input name="button" id="tijiao" type="button" value="提交" onclick="XXX()">
</form>
jieshou页面中可以接收到 request.form("UName") 的值 而request.form("Content") 的值 就一直是空值了
谁能告诉我JS和按钮 提交表单有什么区别?
楼下的回答的很详细,但是能告诉我我贴出来的代码用JS提交的能不能取到request.form("Content") 的值呢