Partilhar via


reason Property

  Microsoft Speech Technologies Homepage

Returns contextual information about the most recent error if that information can be determined by the Speech Platform. Read-only.

stringVar = prompt.reason

Remarks

The reason property is only implemented for the Speech Add-in for Microsoft Internet Explorer.

Example

The following code demonstrates the use of the reason property.

<prompt id="myprompt" onerror="onPromptError()"/>
...
function onPromptError() {
  LogMessage("Prompt Error! (reason="+myprompt.reason+", status="+myprompt.status+")");
}

See Also

prompt Element |  status Property