title: How to load javascript from parent into child context
body: <p>I have one HTML page with parent.js in it. Within that html, one iFrame will be created on runtime. This iframe needs the parent.js in its context.
  If I am having one</p>
  
  <pre><code>function save() { ... }
  </code></pre>
  
  <p>in the parent.js, I can call that from iframe.js, like</p>
  
  <pre><code>parent.save();
  </code></pre>
  
  <p>But i need to call that in the iframe context, like</p>
  
  <pre><code>save();
  </code></pre>
  
  <p>So I have loaded the parent.js again in the iframe html. This makes parent.js to be loaded everytime I create a new iframe.</p>
  
  <p>Is there anyway I could reuse the parent.js which is already loaded, into each iframe created?, like</p>
  
  <pre><code>loadParentJS("parent.js");
  </code></pre>
  
  <p>within iframe.js. This shouldn't give another request to application server.</p>