Reputation: 21
Once you open a window using window.open, how do you access the dom of the popup
Upvotes: 2
Views: 189
Reputation: 13266
window.open returns you a window object. That window object's document property would return the DOM of the elements in the window.
var win = window.open("../test.html");
win.document.forms[0];
Upvotes: 3