A.jsp<input type="text" name="test">
<input type="button" value="test">点击按钮,弹出窗口进入B页面
B.jsp<frameset framespacing="0" border="false" cols="25%,75%" frameborder="yes">
<frame name="left" scrolling="auto" marginwidth="0" marginheight="0" src="c.jsp"></frame>
<frame name="main" scrolling="auto" src="d.jsp"></frame>d.jsp
<input type="button" value="ddddd">在d页面获取A页面中表单的值怎么获取,在线等。感谢~
<input type="button" value="test">点击按钮,弹出窗口进入B页面
B.jsp<frameset framespacing="0" border="false" cols="25%,75%" frameborder="yes">
<frame name="left" scrolling="auto" marginwidth="0" marginheight="0" src="c.jsp"></frame>
<frame name="main" scrolling="auto" src="d.jsp"></frame>d.jsp
<input type="button" value="ddddd">在d页面获取A页面中表单的值怎么获取,在线等。感谢~
解决方案 »
- hibernate不停的重新载入映射文件的问题
- 新手求解:为什么我的myeclipse不能运行以下代码?
- jsp模糊查询问题
- 哪位仁兄有已搭好的SSI框架?(Struts2+Spring+IBatis2)的。
- 关于整个系统例外管理的问题
- jsp中如何隐藏IE的工具栏?(急。。。。在线ing...)
- 当使用JACOB打开Word文档后,在第一个做过标记的地方插入文本,怎么样移到下一个做过标记的地方?急!!!
- <%page language="java"%>和<%page language="javascript"%>的区别
- Eclipse开发环境下Jsp的内置对象的属性和方法不能自动展开
- 非常非常想知道,谢谢回复
- jsp页面tyep=button/type=image区别
- JSP中JSTL的使用????
<frame name="main" scrolling="auto" src="d.jsp"></frame>
d.jsp<script type="text/javascript">
window.onload = function () {
alert(dialogArguments.document.getElementById('txt_a').value);
}
</script>
这个'txt_a'就是你想要的a.jsp的form的某个属性
window.onload = function(){
var id = document.form1.id.value; //这里用你自己的form的属性
document.getElementById("myframe").src = "d.jsp?id=" + id;
}
</SCRIPT>
function selectOrg(id){
if(window.opener){
window.opener.document.all.test.value = id; //先前的页面
//window.close();
}
}
<script>
function test(){
window.open("2.htm");
}
</script>
<input type="test" name="test">
<input type="button" value="t" onclick="javascript:test()">2.htm-------------------
<input type="button" value="t" onclick="javascript:t()">
2.htm-------------------
<script>
alert(window.opener.document.all.test.value);
</script>
d.jsp中加入
<script type="text/javascript">
window.onload = function () {
alert(dialogArguments.document.getElementById(text).value);//
}
</script>
<input type="button" value="test">点击按钮,window.open()方式,弹出窗口进入B页面
-----------
B.jsp
<frameset framespacing="0" border="false" cols="25%,75%" frameborder="yes">
<frame name="left" scrolling="auto" marginwidth="0" marginheight="0" src="c.jsp"></frame>
<frame name="main" scrolling="auto" src="d.jsp"></frame>
----------
d.jsp
中获取A页面中的表单的值: alert(top.opener.document.getElementById("testobj").value);
其中testobj为A.jsp中某个表单域的id
其中testobj为A.jsp中某个表单域的id