script

<script>

 It allows the VoiceXML programmer to either include the ECMAScript within the document or download it from an external document.

 Attributes:

charset

It contains information about the character encoding of the script downloaded from an external document.

fetchhint

This can be either ‘safe’ or ‘prefetch’. Prefetch tells the interpreter to retrieve the file when the document is executed while safe indicates that the file can be downloaded only while executing this element.

fetchtimeout

Interval of time to wait for before throwing an “error.badfetch” event. It is platform dependent.

maxage

An integer value that indicates the maximum allowable age of the fetched documents in seconds. If the cached copy is older than the maxage value then a new copy will be fetched.

maxstale

An integer value which is added to the maxage and the resultant integer value indicates the maximum value in seconds, a stale content of the element can have after which it becomes invalid and can no longer be used.

src

URI specifying the location of the script if the script location is in another document.

parent

block, catch, error, filled, form, help, if, menu, noinput, nomatch, vxml

children

PCDATA