Programmer's Guide > Interfaces > ScriptContext interface > loadScriptFile method
  
loadScriptFile method
Loads, compiles, and runs the specified script file.
loadScriptFile(filename )
Parameters
Stringfilename
The file name containing the script to load.
Returns
IDispatch. An object representing the compiled script. This object name can be used in the addNamedItem method to expose the script's methods to other script instances.