WMLScript WMLBrowser Standard Library Quick Reference

Preferences - Do not show ads

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");


Preferences - Do not show ads


Page 1 of 6 Next Page
Contents at a Glance
Print this Web Page | | Back to Top

Feedback Form (Expand)

What do you think about this web page?






Standard WMLScript Libraries Reference - Table of Contents Standard WMLScript Libraries Reference - Contents at a Glance Preferences - Change Color Scheme Preferences - Do Not Show Ads Next Page