首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

window.open兑现表单提交

2012-10-24 
window.open实现表单提交父页面parentHtml中的写法 form actionjsp/test.jsp nametestform idtes

window.open实现表单提交
父页面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和第二个参数值保持一致保证打开的是你需要的页面;

热点排行