document.ready is not working on showmodaldialog
<p>I am working on a Application in which i frequently uses the popups.</p>

<p>but i cann't figure out why document.ready is not working on showmodaldialog</p>

<p>but window.load is working fine on that.</p>
