父页面parentHtml中的写法
<form action="jsp/test.jsp" name="testform" id="testform"
method="post" onsubmit="window.open('','childHtml','width:1024px,height:768px,status=yes,
toolbar=no,menubar=no,location=no')" target="childHtml">
去掉open('','','')中的第一个参数可保证不弹出另外多余的一个空白窗口,target和第二个参数值保持一致保证打开的是你需要的页面;
<form action="jsp/test.jsp" name="testform" id="testform"
method="post" onsubmit="window.open('','childHtml','width:1024px,height:768px,status=yes,
toolbar=no,menubar=no,location=no')" target="childHtml">
去掉open('','','')中的第一个参数可保证不弹出另外多余的一个空白窗口,target和第二个参数值保持一致保证打开的是你需要的页面;