WMLScript getPath() function
The getPath() function returns the specified path in the URL.
Syntax
n = URL.getPath(url)
Component | Description |
---|---|
n | String returned from the function. |
url | A string. |
Example
var a = URL.getPath("http://codew3c.com/wml/tips.htm"); var b = URL.getPath("http://codew3c.com");
Result
a = "/wml/tips.htm" b = ""