试试在showModalDialog把当前窗口对象传递过去
showModalDialog("test.htm",window,"status=no;center=yes;help=no;");
然后在test.htm中通过window.dialogArguments接收参数
showModalDialog("test.htm",window,"status=no;center=yes;help=no;");
然后在test.htm中通过window.dialogArguments接收参数
补充说明:
在test.htm中这样做。
function btnOK_click(){
var parentWindow = window.dialogArguments;
parentWindow.document.all("checkboxname").checked = true;
}