关于showModalDialog
请问在一个窗体中点击后弹出对话框,当该对话框关闭后,如何刷新一下该窗体?急,请指教,不胜感激.谢谢!!
[转]
<script>
var vDialog=null;
function rdl_doDialog(){
vDialog=showModalDialog("rdl_showmodelessdialog_demo.html",window,"status:no;resizable:yes;dialogHeight:210px;dialogWidth:360px;unadorne:yes");
if (vDialog != null) vDialog.idDialogInput.value=idOpenerInput.value;
}
</script>
<input type=text id=idOpenerInput value="传递的文字"><br><br>
<input type=button onclick="rdl_doDialog();" value="建立对话框">
---- 对话框页面的代码 ----
<script>
function window.onunload() {
dialogArguments.vDialog=null;
}
</script>
<input type=text id=idDialogInput><br><br>
<input type=button onclick="dialogArguments.idOpenerInput.value=idDialogInput.value;" value="传递文字">
<input type=button onclick="window.close();" value="关闭">