Reputation: 3084
In IE9 Beta, i am not able to access javascript variables in a child window from the parent window.
var mywin = window.open('popup.jsp', 'popup', 'width=400,height=200,scrollbars=yes');
if(mywin.foo == 'bar') {
// do something
}
popup.jsp contains a script like this
var foo = 'bar';
The condition inside the if block is truthy in every other browser except IE9. In IE9 mywin.foo is undefined.
Can someone shed some light on this?
Upvotes: 0
Views: 1086