|
Newsletters
|
|
|
|
|
Voice XML Reference
Voice XML Reference
Bookmark this page
The var Element - <var>
Description: This element declares a variable. It can occur in executable content or as a child of <form> or
<vxml>.
Example:
<var name="phone" expr="6305551212"/>
<var name="y" expr="document.z+1"/>
| Attributes |
| Name |
Value |
Description |
| name |
PCDATA |
The name of the variable that will hold the result. |
| expr |
PCDATA |
The initial value of the variable (optional). If there is no expr
attribute, the variable retains its current value, if any. Variables start
out with the ECMAScript value undefined if they are not given
initial values. |
Back to Tag Listing
|
|