Important: $WBIRUN function uses safe subset which means that scripting engine is only allowed to create or use objects that are marked safe for scripting.
Availability
$WBIRUN is available for use with all WBSP commands in
scripting languages listed in Execute variable of WBSP.ssc file.
Syntax
$WBIRUN{Language|function(fnargs)|ScriptCode}
$WBIRUN[Language|function(fnargs)|ScriptCode]
Parameters
language - name of the scripting language used in
script (e.g. JavaScript, VBScript, JScript, etc.)
function - name of the function that should be executed -
fnargs are arguments required by the script function, not by the
WBSP
scriptcode - actual script
code that should be executed
Returns
Result returned by script
function.
Example
After running this example, the resulting page in web browser may look like this: