javascript怎么在父窗体接受子窗体returnValue的值?

如题所述

第1个回答  2022-12-14
使用window.showModalDialog:\x0d\x0atemp=window.showModalDialog("dialog.html",window);\x0d\x0a在弹出页面中关闭前设置返回值:\x0d\x0awindow.returnValue="hello!";\x0d\x0a弹出窗口关闭后会返回“hello”给temp。