Function Pointers

The new GetRef function allows you to 'bind' a script procedure to any available object event in a DHTML page. Previously, this had to b accomplished through the ObjectName_EventName syntax or through an HTML tag. When the event occurs, the procedure name passed to the GetRef function will be executed. For example:

Set Window.Onload = GetRef("MyFunction")

When the Window.Onload event fires, MyFunction will be executed.

First
Next