How to use jQuery to handle the Page Load event

Web developer can use the Application object to execute some code when the page is loaded in ASP.NET Ajax. In jQuery, Web developer can write a method and then pass it to the $ method:

$( func() {
alert (“Page loaded”);

Web developer can put any logic inside the method. By using jQuery Web developer gets the same result with less code than ASP.NET Ajax.