title: How do I set a Colorbox title from the content loaded in the Colorbox itself?
body: <p>Let me explain. I use Colorbox to load HTML file and display it in the iframe. The HTML file contains <code>&lt;title&gt;</code> tag. Is it possible to use that <code>&lt;title&gt;</code> tag as the title for the Colorbox popup? I could use <code>onComplete</code> event, but how?</p>
  
  <p><strong>EDIT:</strong> I should clarify the code:</p>
  
  <p>Parent HTML:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;This is parent&lt;/title&gt;
          &lt;script src="jquery.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function(){
                  $('a.cb').colorbox({
                      iframe : true,
                      title  : function() { /* here goes the code */ },
                  });
              });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;a class="cb" href="popup.html"&gt;Popup&lt;/a&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Child HTML:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;The title&lt;/title&gt;
      &lt;/head&gt;
  &lt;body&gt;
      ...
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Basically I want that Colorbox shows the title from the child HTML code.</p>