0

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?

1
  • popupjsp is on the same domain as the surrounding page? Commented Feb 4, 2011 at 17:27

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.