The Timer Element

A timer causes an application to initiate a given action after a given period of time. You might use a timer to display an advertisement or splash page before you automatically navigate the user to the start card of an application. Most often, a timer shows a card for a set length of time and then navigates the user to a new card. However, there are other ways to use timers, which we will explore a little later in the chapter. For developers accustomed to working in HTML, the timer element is similar the meta-refresh tag.

A timer begins counting down when the user first enters the card containing the timer. When the user exits the card, the timer is stopped. If she is still on the card when the timer expires, a predefined ...

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.