WML ontimer Event - WML

What is ontimer Event?

The ontimer event is used to define an event in a assigned time period. Let's say you want to display a message after 5 seconds of loading a card, you can use this event to do so.

Here is the syntax to define an event handler for ontimer event:

Here, it means that a task will be performed after 5 seconds.

Let’s see the example showing usage of ontimer event along with <onevent> element.

When you load this program, it shows you the following screen:


Incase if you do not select given Enter option, then after 5 seconds you will be directed to Welcome page and it will display the following screen.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WML Topics