WMLScript getScheme() function
The getScheme() function returns the scheme in the URL.
Syntax
n = URL.getQuery(url)
Component | Description |
---|---|
n | The string returned from the function. |
url | A string. |
Example
var a = URL.getScheme("http://www.codew3c.com"); var b = URL.getScheme("www.codew3c.com"); var c = URL.getScheme("ftp://www.codew3c.com");
Result
a = "http" b = "" c = "ftp"