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


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