home / experts / javascript / column48 |
|
Writing ScriptsWhen you execute a script within HomeSite (by clicking one of your custom buttons), the application invokes the script's
You can also include additional global variables and functions, as shown in the following script:
Just like C++, HomeSite executes the script by calling the We mentioned earlier that HomeSite supports JScript and VBScript. You obviously can't use both languages in one script, so the program must know what language you are using. HomeSite determines which language engine to use based on the extension of the script file. The extensions .bas, .vb, and .vbs refer to VBScript, while any other extension represents a JavaScript source. |
Produced by Yehuda Shiran and Tomer Shiran
Created: September 13, 1999
Revised: September 13, 1999
URL: http://www.webreference.com/js/column48/write.html