How to Add a Script to an Object

Previous Next

See Also

To add a script to an object:

1. First, insert the appropriate event listener object.
2. In this event listener object, insert a callClientScript action.
3. For this action, set the Script property to the script text.
4. If the Script property calls external functions, also set the Script Source property to the file in which these functions are defined.

If nothing is specified, functions are assumed to be defined in the js/CustScript.js file, or in the top section of the current HTML document.

5. Optionally, if the script language you use is NOT JavaScript, set the Script Type property for example to: vbscript.

If nothing is specified, the script type is considered to be JavaScript.

6. Save your changes.