弹出模态窗口并传递数值
页面中有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;