Last reviewed: 3/23/2024 12:37:52 PM
<script>
A <script> element specifies a block of ECMAScript client-side scripting logic.
Syntax
<script charset="encoding"
fetchhint="type"
fetchtimeout="secondsormilliseconds"
maxage="seconds"
maxstale="seconds"
src="uri"
srcexpr="expression" />
Attributes
charset
The character encoding of the script designated by src. UTF-8 and UTF-16 encodings of ISO/IEC 10646 must be supported (as in [XML]) and other encodings, as defined in the [IANA], may be supported. The default value is UTF-8.
fetchhint
Defines when the interpreter context should retrieve content from the server. prefetch indicates a file may be downloaded when the page is loaded. safe indicates a file that should only be downloaded when actually needed. If not specified, a value derived from the innermost relevant fetchhint property is used. The default value is the audiofetchhint property.
Fetch Type | Description |
---|---|
prefetch | Indicates a file may be downloaded when the page is loaded. |
safe | Indicates a file that should only be downloaded when actually needed. |
fetchtimeout
The interval to wait for the content to be returned before throwing an error.badfetch event. The value is a Time Designation. The default value is the fetchtimeout property.
maxage
Indicates that the document is willing to use content whose age is no greater than the specified time in seconds. The default value is the audiomaxage property.
maxstale
Indicates that the document is willing to use content that has exceeded its expiration time. The default value is the audiomaxstale property.
src
The URI of the audio prompt.
Children
none
Parents
<block>, <catch>, <error>, <filled>, <form>, <help>, <if>, <menu>, <noinput>, <nomatch>, <prompt>, <vxml>.
Variables
none
Version Information
Supported in: VoiceXML 1.0, VoiceXML 2.0, and VoiceXML 2.1.