Using Array class in parent and child windows (javascript question)
<p>I'm actually coding a case where a child popup window transfer data to parent window as:</p>

<pre><code>var childArrayData = new Array();
childArrayData[0] = 'Data text1';
childArrayData[1] = 'Data text2';
childArrayData[2] = 'Data text3';
window.opener.parentVariable = childArrayData;
</code></pre>

<p>I got an error which was solved like:</p>

<pre><code>var childArrayData = new window.opener.Array();     &lt;-----
childArrayData[0] = 'Data text1';
childArrayData[1] = 'Data text2';
childArrayData[2] = 'Data text3';
window.opener.parentVariable = childArrayData;
</code></pre>

<p>Why is Array class different between two different windows? Does it relate to namespacing? May you refer to any article about the answer?</p>

<p>Thanks in advance.</p>

<p>Best,</p>

<p>Esteve</p>
