在一个页面打开一个新页面,从这个新页面获得返回值
//
var url ="ABC.html" //你想打开的页面
var rets = window.showModalDialog(url, '', 'dialogheight=768px;dialogwidth=1024px');
这个rets就是这个ABC.html的返回值
//
在ABC.html页面关闭该页之前应该这样赋值
window.returnValue ="你想返回的值"//把只赋在这里,关闭该页的时候,另外一个页面就能获取到它的值了