title: Call javascript function after script is loaded
body: <p>I have a html page where I am appending html at dynamically through a javascript like below</p>
  
  <pre><code>&lt;script type="text/javascript" src="/myapp/htmlCode"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I want to call a js function e.g. loadedContent(); once the above script adds dynamic html.</p>
  
  <p>Can someone help me how I can do that?</p>