|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > URL > getPath()
getPath() - The getPath Function
Usage: getPath(url)
Description: Returns the path specified in the given url. Both absolute and relative URLs are supported. Relative URLs are not resolved into absolute URLs.
Example:a = URL.getPath("http://www.wirelessdevnet.com/home/sub/comp#frag");
// a = "/home/sub/comp"
b = URL.getPath("../home/sub/comp#frag");
// b = "../home/sub/comp"
c = URL.getPath("http://w.a.p/a;x/b;y=1/c;fg#a");
// c = "/a/b/c"
d = URL.getPath("http://w.a.p/a;x/b;y=1/c#b");
// d = "/a/b/c"
Bookmark this page
|
|