WMLScript getQuery() function
The getPort() function returns the query part of the URL.
Syntax
n = URL.getQuery(url)
Component | Description |
---|---|
n | String returned from the function. |
url | A string. |
Example
var a=URL.getQuery("http://example.com/go.asp?name=bill"); var b=URL.getQuery("http://example.com");
Result
a = "bill" b = ""