c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
JQuery

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

| | JQuery

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

        });

    });