on method

Top  Previous  Next

The on function registers an external event along with its callback function with the HostSurfer instance, associating it to the caller execution context.

 

Call Parameters

 

Parameter name

Explanation

event

The name of the event to be registered.

callback

The callback function assigned to the event.

 

Return Object

 

This function does not return any object.