Javascript 我可以将弹出页面中的表单提交到父页面,这样父页面就可以移动到其他页面而不需要新的选项卡吗?

Javascript 我可以将弹出页面中的表单提交到父页面,这样父页面就可以移动到其他页面而不需要新的选项卡吗?,javascript,html,jsp,Javascript,Html,Jsp,天才能帮我吗 我正在用jsp开发SpringMVCWeb项目。 有一个显示主题列表的父页面, 当用户单击某个主题以检查其密码时,会显示一个弹出页面 弹出页面通过表单将插入的密码传输到父页面并关闭自身,因此父页面将移动到显示其内容的其他页面 它在Chrome上运行良好,但在InternetExplore上不起作用。 在IE中,弹出窗口消失,另一个页面显示其内容 有没有天才知道我是如何阻止第三个页面,让第一个父页面移动到内容页面的 这是我的密码。 希望有人在这里帮助我 //the form in p

天才能帮我吗

我正在用jsp开发SpringMVCWeb项目。 有一个显示主题列表的父页面, 当用户单击某个主题以检查其密码时,会显示一个弹出页面

弹出页面通过表单将插入的密码传输到父页面并关闭自身,因此父页面将移动到显示其内容的其他页面

它在Chrome上运行良好,但在InternetExplore上不起作用。 在IE中,弹出窗口消失,另一个页面显示其内容

有没有天才知道我是如何阻止第三个页面,让第一个父页面移动到内容页面的

这是我的密码。 希望有人在这里帮助我

//the form in popup page
<form action="readDetail.do" name="insertedPasswordForm" id="insertPasswordForm" role="form" method="post" target="parentPage">
    <input type="password" id="typedPassword" name="typedPassword"/>
    <input type="hidden" name="privateId" value="${privateId}"/>
</form>

<button  onclick="insertPassword()" style="margin-left:200px;">확인</button>
//submit the form by this button with javascript


//javascript
function insertPassword(){
    opener.name = "parentPage";
    document.insertedPasswordForm.target = "parentPage";
    document.insertedPasswordForm.submit(); 
    window.close();
}
//弹出页面中的表单
확인
//使用javascript通过此按钮提交表单
//javascript
函数insertPassword(){
opener.name=“parentPage”;
document.insertedPasswordForm.target=“parentPage”;
document.insertedPasswordForm.submit();
window.close();
}

我刚改变了传递值的方式


我使用了Modal,所以不需要使用弹出窗口。

浏览器控制台中有错误吗?没有,它实际上工作正常。但我不想看到弹出窗口关闭后出现的第三页。。。