title: How to call function after ajax content fully loaded like $(window).load() or window.onload?
body: <p>I'm using ajax but is there any option to call function after ajax content fully loaded like <code>$(window).load()</code> or <code>window.onload</code>? When i'm in fresh page everything working fine with <code>$(window).load()</code> or <code>window.onload</code> function because some scripts work after window complete load. But the problem is in ajax and when i click on a link and page is dynamically load contents from another page so we don't need <code>$(window).load()</code> or <code>window.onload</code> function but because some script only work when window loaded or content fully loaded so how to call function after ajax content fully loaded like <code>$(window).load()</code> or <code>window.onload</code> ?     </p>
  
  <pre><code>function windowload() {
        //Some functions works only after window load
   };
  
  
  
  $(function() {
  
     $(window).on('load', windowload);
  
          $(document).on('click', '.pagination a', function(event) {
                          event.preventDefault();
                          var $this = this.href;
  
                          $.ajax({
                          url: '' + $this + '',
                          dataType: 'html',
                          success: function(html) {
                          var div = $('#style', $(html));
                          $('#style').html(div);
  
                          //call windowload but not working
                           windowload();
  
                          //Also tried this but not working
                          $('#style').on('load', function(){
                              windowload();
                             //Some functions work only after ajax content fully loaded 
  
                               });
  
                        });
                 }); 
  </code></pre>
  
  <p><strong>Edit :</strong>
  I need a function after ajax content fully loaded not after ajax request complete.</p>