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");
});
});