弹出模态窗口并传递数值

页面中有BUTTON点击btnExporterClick并把数据传到子窗口

function btnExporterClick() {
    window.param = document.getElementById("dropEnvironment").value;
    var url = "frmExporter.aspx";
    window.showModalDialog(url, window, "dialogWidth=" + 600 + "px;dialogHeight=" + 360 + "px");
}

 

接值:

var environmentSource = window.dialogArguments.param;

posted on 2011-11-05 00:52  诡计的不老歌  阅读(250)  评论(0编辑  收藏  举报