window.showModalDialog传递参数及返回值方法

 
 

如果有一个页面是用window.showModalDialog打开的,例如
args = new Array();
args[0] = 1;
args[1] = 2;
window.showModalDialog('dialog.jsp',args);

在被调用的页面中
如果用javascript的window.dialogArguments是可以接收到参数的

返回值:

window.returnValue = "abc";    

原文地址:https://www.cnblogs.com/luluping/p/1596196.html