Name

getParameters — Return the parameters extracted from a URL

Usage

URL.getParameters(url)

url : String

Description

Returns the parameters extracted from url. Both relative and absolute URLs are supported. Returns the empty string if url doesn’t specify any parameters.

Returns invalid if url can’t be converted to a string or can’t be parsed as a URL.

Examples

URL.getParameters("http://www.inhand.net;x;y;z")

returns string "x;y;z"

URL.getParameters("http://www.inhand.net/")

returns string ""

URL.getParameters("../logo.wbmp")

returns string ""

URL.getParameters("http://www.inhand.net:xxx/")

returns invalid

URL.getParameters(invalid)

returns invalid

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.