WMLScript » Functions » WMLBrowser

The WMLBrowser library function is composed of seven functions that can be used to access the WML context (the information and content associated with a card). For example, you can return to a previous card, go to a new card, refresh a current card, get the current card URL, or get and set named variables.

The library and function names are case sensitive.

WMLBrowser.getCurrentCard

Syntax: WMLBrowser.getCurrentCard()

Returns the URL of the current card.

WMLBrowser.getVar

Syntax: WMLBrowser.getVar(name)

Returns the value of the named variable.

WMLBrowser.go

Syntax: WMLBrowser.go(url)

Orders the browser to load the given URL.

WMLBrowser.newContext

Syntax: WMLBrowser.newContext()

Clears the WML browser context.

WMLBrowser.prev

Syntax: WMLBrowser.prev()

Orders the browser to go back to the previous card.

WMLBrowser.refresh

Syntax: WMLBrowser.refresh()

Directs the browser to update the currently displayed card.

WMLBrowser.setVar

Syntax: WMLBrowser.setVar(name, value)

Sets the value for the named variable.

See Also: