WMLScript getHost() Function
The getHost() function returns the host specified in the url parameter.
Syntax
n = URL.getHost(url)
Component | Description |
---|---|
n | The string returned from the function. |
url | A string. |
Example
var a = URL.getHost("http://www.codew3c.com/wml"); var b = URL.getHost("/wml/functions");
Result
a = "www.codew3c.com" b = ""