<exit>
Terminates the current session. When the <exit> element is executed, all documents for the currently loaded application are unloaded and control is passed to the interpreter context.
This differs from <return> in that <exit> terminates all loaded documents, while <return> only terminates new documents that were invoked in the corresponding <subdialog> invocation; documents and applications invoked before the <subdialog> are kept open. See <subdialog> for more information.
The <exit> element is similar to the <disconnect> element, but does not force the interpreter context to drop the call. See <disconnect> for more information.
Attributes
This section describes the attributes you can set for this element.
|
Name |
Data type |
Default |
|---|---|---|
|
CDATA |
optional |
|
|
CDATA |
optional |
expr
The expr attribute specifies an ECMAscript expression for the return value.
namelist
The namelist attribute specifies the list of variables to be returned. If no variables are specified, an empty ECMAscript object is returned.
If an undeclared variable is named, an error.semantic is thrown.
Note: The namelist attribute does not return any variables by default.
Children
None.
Parents
Sample code
<block>
Thanks for calling. Goodbye. <exit/>
</block>