您现在的位置是:首页 > 电脑技术查询 > web开发

javascript:怎么在下页取得FORM表单的值

编辑:chaxungu时间:2022-10-02 23:22:29分类:web开发

javascript:如何在下页取得FORM表单的值?
具体内容如下:
a.jsp
<form type= "post " action= "b.jsp ">
<input name= "aa " type= "hidden ">
</form>

b.jsp
<script type= "text/javascript ">
如何得到aa的值?
</script>

------解决方案--------------------
具体内容如下:
a.jsp
<form type= "post " action= "b.jsp ">
<input name= "aa " type= "hidden ">
</form>

b.jsp
<script type= "text/javascript ">
如何得到aa的值?
var a=Request( "aa ")
Response.Write( "a ")
</script>