Adds a callback that is invoked after the page loads.


Name Type Description
callback Function The function to be invoked when the page loads.

Return Value

Result Value


This example registers a named function to be called when the page loads:

function customLoadCallback()
    MakeFieldDisabled( "Priority" );

AddLoadCallback( customLoadCallback);


Callbacks are invoked in the order in which they are added. This delays scripting until all of the page objects load. If this method is called after the page loads, it has no effect. This method is often used to set the initial state of fields and controls on a form.