title: Html div on load event for a dynamically added div element
body: <p>How i can make some thing like this?</p>
  
  <pre><code>&lt;div id='myDiv' onload='fnName()'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>can't use</p>
  
  <pre><code>window.onload = function () {
      fnName();
  };
  
  or
  
  $(document).ready(function () {fnName();});
  </code></pre>
  
  <p>the div element is dynamic. The div content is generated by xml xsl. </p>
  
  <p>Any ideas?</p>