看来我的语文水平不是一般的差啊//另一个站点下的文件,得不到返回值(vvvv.com 是随便起的名称,就是不同站点或者虚拟目录下WEB程序)
var qq=window.showModalDialog("http://vvvvv.com/hl.htm");
alert(qq); //同一站点下的文件,可以得到返回值
var xx=window.showModalDialog("h.htm");
alert(xx);
var qq=window.showModalDialog("http://vvvvv.com/hl.htm");
alert(qq); //同一站点下的文件,可以得到返回值
var xx=window.showModalDialog("h.htm");
alert(xx);
var qq=window.showModalDialog("http://vvvvv.com/hl.htm");
alert(qq); //同一站点下的文件,可以得到返回值
var xx=window.showModalDialog("h.htm");
alert(xx);
你那个属于跨域的
http://blog.csdn.net/lovingprince/archive/2008/09/20/2954675.aspx