title: Use an object from the parents document inside an iframe?
body: <p>I create an object in a document during thje onload event for the body and then later an iframe.  I need to have access to that object (with all methods) inside that iframe.</p>
  
  <p>in the parent document (init.html):</p>
  
  <pre><code>function qvinit() {
  qva = new Qva.PageBinding('QLM');}
  </code></pre>
  
  <p>in the body of init.html I then create an iframe and call another HTML page</p>
  
  <pre><code>&lt;iframe src=nextpage.html&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>nextpage.html then is a very simple document which loads some javascript functions and CSS and which basically only does a DIV</p>
  
  <pre><code>&lt;div class="QvFrame" avqview="QLM" avq="object:.Document\CH01" id="Document\CH01" style="width:260px;height:158px"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>this DIV section works well if it resides within the parent document (i.e. init.html). however, i need to put it into a "child document" (i.e. nextpage.html) and then it doesn't work anymore. It might be that nextpage.html doesn't know anything about the object, I don't know as I'm still very new to Javascript. </p>
  
  <p>Does someone have an idea how to accomplish it that I can use the QLM object from the parant document?</p>
  
  <p>Many thanks</p>
  
  <p>Stefan</p>