模态对话框传值问题?

弹出一个对话框,在关闭之后,如何把一个值传给打开它的窗口的文本框。
---------------------------------------------------------------

在对话框的页里关闭前
window.returnValue = "传回的值";
window.close();

打开它的窗口的:
var returnValue = showModalDialog(url, args, feature);
alert(returnValue);

---------------------------------------------------------------

http://extend.hk.hi.cn/~liuzc/kjyd/newpage11.htm

Published At
Categories with Web编程
comments powered by Disqus