Name

go — Specify a <go> task to execute

Usage

WMLBrowser.go(url)

url : String

Description

Specifies a simple <go> task that is executed when control returns to the browser from the WMLScript interpreter. This function, and prev( ), may be called multiple times. Each call overrides the previous one, so only the last call to either go( ) or prev( ) has any effect. If url is the empty string, the resulting task has no effect. This can cancel a previous task set up with go( ) or prev( ).

Returns the empty string; returns invalid if url can’t be converted to a string.

Examples

WMLBrowser.go("http://inhand.net/wap/main.wml")

returns ""

WMLBrowser.go(invalid)

returns invalid

Get Learning WML, and WMLScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.