title: How to Window.Open inside a jQuery Modal
body: <p>I have my Modal Div as:</p>
  
  <pre><code> &lt;div id="dialog-modal" title="Open File"&gt;
          &lt;img alt="progress" src="images/ajax-loader.gif"/&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>On Click of Button I am able to see Modal and then see the progress icon.</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
       $(function () {
           $('#button1').click(function () {
               $('#dialog-modal').dialog("open");
           });
           $("#dialog-modal").dialog({
               autoOpen: false,
               height: 140,
               modal: true,
           });
       });
   &lt;/script&gt;
  </code></pre>
  
  <p>But How can I do a operation or function on Load of Modal Window??</p>
  
  <p>Let's say , I want to download a file from server , when the modal window appears (..showing the progress icon)</p>