SBM JavaScript Library Guide → Reference → Event Methods → AddClickCallback
Used to respond to click events from Button, Image, or HyperLink controls.
| Name | Type | Description |
|---|---|---|
| fieldName | String | The name of the field to find. |
| callback | Function | The function to be invoked when the control is clicked. |
| Result | Value |
|---|---|
| (none) |
This example registers a named function to be called on click:
function customClickCallback()
{
RefreshWidget( "DataGrid" );
}
AddClickCallback("Refresh", customClickCallback);
Callbacks are invoked in the order in which they are added.
Copyright © 2007–2020 Micro Focus or one of its affiliates. All rights reserved.