Raised after all scripts have been loaded and the objects in the application have been created and initialized.
Attach delegate functions to the load event to complete any tasks that must be performed after the objects have been created in the application and when they can reference each other. The add_load accessor binds a delegate function to the load event, and the remove_load accessor unbinds it. The load event occurs immediately before the pageLoad event.
The following example shows how to add a handler function to the load event. The event handler redirects the user to another page if the application is loaded outside business hours.