WML Tasks
A task specifies what action to perform when an event, like entering a card or selecting a link, occurs.
There are four WML tasks, <go>
, <noop>
, <prev>
, and <refresh>
, and they can only be contained in either a <do>
or <onevent>
element.
The <go> task has been introduced.
The following will explain the other three tasks.
NOOP
Tag
The <noop> tag dictates that no operation should be done.
This tag can be used on the card level to prevent an event, specified on the deck level by the <template>
element, from occurring.
This example uses a <do>
tag to add a Back
link to the card.
When the user clicks on the Back
link, he or she should be taken back to the previous card.
But the <noop>
tag prevents this operation; when the user clicks on the Back
link nothing will happen.
†Note that this example does not work on the TagTag microbrowser.