Change Javascript script execution context
<p>I wanted to change the JavaScript Execution context from parent window to child window. The different library's inline script, loaded in parent window should be made available to child window execution context. I am able to load my script objects, functions to the child window context but the third party library's is not possible .</p>

<p>This is what i am doing to load my script's</p>

<pre><code>// In parent window
function JJ(){};
JJ.prototype.param = {"k":"v"};

function CNF(){
    return new JJ(); 
};
</code></pre>

<p><hr /></p>

<pre><code>// In child Window

var opener = window.opener;
var CHILD_CNF = opener.CNF();
alert(CHILD_CNF.param.k);
</code></pre>

<p>Thanks</p>
