我在子窗口中弹出第三方网站。我能从父窗口引用其DOM对象吗?我怎么能这样做?
答案 0 :(得分:0)
答案 1 :(得分:0)
childWindow = window.open ("http://www.yourDomain.com","mywindow");
childWindow.onload = function () {
childDocument = childWindow.document;
// now you can do things like, childDocument.getElementById("someElement"); and other DOM manipulation.
};