WMLScript getVar() Function

The getVar() function returns the value of the specified variable in the browser environment.

If the variable does not exist, this function returns an empty string ("").

Syntax

n = WMLBrowser.getVar(variable)
Component Description
n The string returned by this function.
Variable A string.

Example

var a = WMLBrowser.getVar("weeks");

Result

a = "52"