How to use onload event in dynamically inserted html file.
For example
<li><a href="sample.html></li>
this line im using in tab panel. When I click on this tab panel header, the sample.html file will inserted in tab panel, in that time I need to trigger the onload event in sampel.html file
<div id="tabs">
<ul>
<li>
<a href="sample.html">load html file</a>
</li>
</ul>
</div>