Sets a function to be executed when any part of this group gets clicked

function onclick;

In JScript you can easily assign a function to the onclick property. The second assignment makes use of the 'new Function(...)' syntax. This will create a hidden function declaration containing only a single statement.

Example:
function StartLocationChange
{
   // function body
    .....
}

...
{
     hModel.groups("slider").onclick = StartLocationChange;
     hModel.groups("play").onclick = new Function("SetMode(mPlay)");
}

See also:

Class group |

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.