<!DOCTYPE html PUBLIC "-//VoiceXML Forum//DTD XHTML+Voice 1.2//EN"
"http://www.voicexml.org/specs/multimodal/x+v/12/dtd/xhtml+voice12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
  <title>Example 4: Command module</title>

  <form xmlns="http://www.w3.org/2001/vxml" id="sayHello">
	  <block>Hello. Welcome to music online.</block>
      <field name="browser">
      	<prompt>Do you want to start?</prompt>
      <grammar><![CDATA[   
        #JSGF V1.0;
        grammar browser;
        public <browser> = yes | no;]]>
      </grammar>
<nomatch count="1">I didn't get that. Please try again.</nomatch>
	  <nomatch count="2">
	  	I'm sorry. I didn't get that.
	  	Please say yes or no.
	  </nomatch>
	
	  	<filled>
		<if cond="'yes' == browser">
			<assign name="window.location" expr="'page1.xml'"/>
                <else/>
			<prompt>You have say No, which i will do nothing</prompt>
 		</if>
		</filled>
   	  </field>     
  </form>
</head>

<body ev:event="load" ev:handler="#sayHello">
  <h1>Welcome to music World</h1>
  <p>Do you want to start?</p>
</body>

</html>
