FUNCTION:  GetRef( )

Implemented in version 5.0
 
GetRef(FunctionOrSubName)
 
The GetRef function binds a function or subroutine to an event on a DHTML (Dynamic HTML) page.
 
The required ObjectName is the name of a DHTML object to which the DHTML event is associated.
 
The required EventName is the name of a DHTML event to which the function or subroutine will be bound.
 
The mandatory FunctionOrSubName argument is the name of a VBScript function or subroutine to which the DHTML event is to be associated.
 
The above must be used with the Set keyword in the following manner:
 
Code:
Set ObjectName.EventName = GetRef(FunctionOrSubName)