Tutorial WML Events
Internal events (Onevent)
Related properties:
Type: The trigger condition of the internal event, when the current browser state satisfies the trigger condition, the browser triggers the task set under this condition, and there are 4 triggering conditions for the internal event.
1 OnTimer meet the conditions set by the clock, this condition is set up. There is a special explanation for the clock setup issue.
2 Onenterbackward is returned to the current card through prev or other external commands, and the condition is established.
3 Onenterforward when the browser through the link into the current card, the condition is established
4 Onpick when using the option Control list, any click on the control will trigger this event, including selecting and removing the selection.
Example:
<?xml version= "1.0"?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en" "http://www.wapforum.com/DTD/wml_1.1.xml" >
<wml>
<!--this deck can ' t-Ericsson R320SC, because R320SC Haven ' t accept button-->
<card id= "Start" >
<do type= "Accept" label= "Next" >
<go href= "#two"/>
</do>
<p>this is the card.</p>
</card>
<card id= "Two" >
<do type= "Accept" label= "Next" >
<go href= "#three"/>
</do>
<onevent type= "Onenterbackward" >
<go href= "#temp"/>
</onevent>
<p>this is the second card.</p>
</card>
<card id= "three" >
<do type= "Accept" label= "back" >
<prev/>
</do>
<p>this is the thired card.</p>
</card>
<card id= "Temp" >
<do type= "Accept" label= "Start" >
<go href= "#first"/>
</do>
<p>haha, you are lost!</p>
</wml>