Aravindan R
Aravindan R

Reputation: 3084

IE9 weird javascript issue

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

Answers (1)

Aravindan R
Aravindan R

Reputation: 3084

This issue was fixed in IE9 RC1. Seems to be an IE bug.

Upvotes: 1

Related Questions