Defining a Timer's Action

In the preceding section, we defined the syntax for the <timer> tag that sets the length of the timer. When you define the action that a timer will initiate, there are two different syntactical expressions that you may use.

In the preceding examples in this chapter, we have used the ontimer attribute in the <card> tag to establish an action the timer will execute. Although this is the simplest way to code a timer element, what we've really shown is a shorthand version of the <onevent> tag discussed in Chapter 4. The action initiated by a timer is an intrinsic event, and as such can be coded with the <onevent> tag.

▸ For more about intrinsic events in general, and the <onevent> tag in particular, see Chapter 4's section ...

Get WAP Development with WML and WMLScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.