JQuery

How to fire an event after complete page load using jquery?

How to fire an event after complete page load using jquery?, someone asked me to explain?

I was in a situation want to load the page after the page contents are loaded I would like to call a function. This was achieved by using $(window).bind().Below example code I will show you how to implement.we should call it inside the $(document).ready()function.

Example:

$(document).ready(function () {

       $(window).bind("load", function () {

              $("#btnResult").trigger("click");

        });

    });

Post your comments / questions