14. WML Events and the
supports events and it provides a tag pair, <onevent></onevent>,
for handling events. You can specify an action to be taken whenever
an event occurs. Four events are supported in WML.
-- This event occurs when a timer expires.
-- This event occurs when a user goes back to a card through the WAP
browser's URL history.
-- This event occurs when a user goes to a card in the forward
direction. For example, if a user goes to a card by entering its URL
directly in the WAP browser, the onenterforward event will be
-- This event occurs when an item of a selection list is selected or
<onevent></onevent> tags are used to create event
handlers. Its usage takes the following form:
single task to be done whenever the event
that are allowed to be placed between the <onevent> and
</onevent> tags include <go>, <prev> and <refresh>.
You have seen the <go> and <prev> elements before. We
will describe how to use the <refresh> element when we cover
variables in this tutorial.
Feedback Form (ExpandCollapse)