1. WMLScript WMLBrowser Standard Library Quick Reference

WMLScript's WMLBrowser standard library provides a group of functions to control the WML browser or to get information from it.



WMLScript Quick Reference: Functions in the WMLBrowser Standard Library

getCurrentCard()

Returns the URL of the current card displayed in the WML browser.

getVar(variable_name)

Returns the value of the WML variable variable_name.

Example:

var wmlscript_variable = WMLBrowser.getVar("wml_variable");

go(url)

Goes to the card with URL address url.

Example:

WMLBrowser.go("http://www.developershome.com/helloWorldEg1.wml");

newContext()

Clears all WML variables and the URL history stored in the WML browser.

prev()

Goes to the previous card displayed in the WML browser.

refresh()

Refreshes the contents of the current card displayed in the WML browser.

setVar(variable_name, value)

Assigns value to the WML variable variable_name.

Example:

WMLBrowser.setVar("wml_variable", "Hello World");



Page 1 of 6 Next Page


A button for going back to the top of this page