怎样在弹出页面输入数据后刷新该页.
要注意的是打开窗口使用的是window.open();
而不是showModalDialog();
A.<script language=javascript>
<!--
function closewin()
{
window.opener.location.reload();
self.close();
}
//-->
</script>
B.刷新父窗体,也可这么做
在弹出的窗体中<body onbeforeunload=opener.location.reload(true)>
C.
<script language="javascript">
function unload(){
window.opener.location.href='主页面url';
}
</script>
<body onUnload="unload()">
</body>
<!--
function closewin()
{
window.opener.location.reload();
self.close();
}
//-->
</script>
B.刷新父窗体,也可这么做
在弹出的窗体中<body onbeforeunload=opener.location.reload(true)>
C.
<script language="javascript">
function unload(){
window.opener.location.href='主页面url';
}
</script>
<body onUnload="unload()">
</body>
刷新iFrame
window.parent.document.getElementById('iframeName').contentWindow.location = node.Target;