window.frames["openPhoto"].checkAlert() openPhoto 为弹出 Iframe ID。 子页面调用父页面方法: parent.window.checkAlert();