20.1.3. Using the setVar() Function of WMLScript's WMLBrowser Standard Library

The third way to set a value to a variable is to use the setVar() function of WMLScript's WMLBrowser standard library. setVar() takes two parameters. The first parameter is the variable name and the second one is the value. For example, if you add the following line to a WMLScript function, the value of the WML variable var1 will be set to WML Tutorial.

WMLBrowser.setVar("var1", "WML Tutorial");

The details about WMLScript are out of the scope of this WML tutorial. You can find more information about WMLScript in our WMLScript tutorial.

Previous Page Page 42 of 50 Next Page

Feedback Form (ExpandCollapse)

What do you think about this web page?

(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.

A button for going back to the top of this page