SBM JavaScript Library Guide → Reference → Event Methods → AddLoadCallback
Adds a callback that is invoked after the page loads.
Name | Type | Description |
---|---|---|
callback | Function | The function to be invoked when the page loads. |
Result | Value |
---|---|
(none) |
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.
Copyright © 2007–2016 Serena Software, Inc. All rights reserved.