在JS中,window.opener只是對(duì)彈出窗口的母窗口的一個(gè)引用。比如: a.html中,通過(guò)點(diǎn)擊按鈕等方式window.open出一個(gè)新的窗口b.html。那么在b.html中,就可以通過(guò)window.opener(省略寫(xiě)為opener)來(lái)引用a.html,包括a.html的document等對(duì)象,操作a.html的內(nèi)容。
www.dbjr.com.cn/article/454...htm 2025-5-31