title: Iframe/Popup redirecting opener window
body: <p>I have a page located at x.com.  On this page is a button that, when clicked, will launch a new window (using javascript's window.open() method) to a page that is located at z.com.  The popup does a few things, then redirects the original window (the opener, x.com) to a different page based on some parameters defined in the popup.</p>
  
  <p>This works fine in Firefox/Chrome, but not in IE.  In IE (8 specifically, but I believe 7 also has this problem) the original window (the opener) is not redirected.  Instead, a new window comes up and THAT window is redirected.</p>
  
  <p>I've tried many different methods to try and get this to work, including changing the popup to an iframe loaded on the page and having a function on the opener that the popup/iframe call.  The problem seems to be that IE refuses to allow cross-domain sites to talk to each other via javascript.</p>
  
  <p>Is there a way around this?  How can I get the parent window to redirect to a page based on parameters in a popup or iframe?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here is some code for samples:</p>
  
  <p>In a page on domainA.com, I have this:</p>
  
  <pre><code>&lt;img src='/images/test.png' onclick="window.open('http://www.domainB.com/item.aspx', 'name', 'width=100,height=100,menubar=no,status=no,toolbar=no');" /&gt;
  </code></pre>
  
  <p>In item.aspx on domainB.com I have this in the javascript:</p>
  
  <pre><code>opener.location.href = 'http://www.somethingelse.com/';
  </code></pre>
  
  <p>In Firefox/Chrome, this works fine.  In IE, when domainB.com tries to set location.href on opener (aka the parent window, which is domainA.com), it instead opens a new window, which is not what I want.  I want it to redirect the opener (parent window) to the URL I specified.</p>
  
  <p>Bara</p>