WMLScript getPath() Function

The getPath() function returns the specified path in the URL.

Syntax

n = URL.getPath(url)
Component Description
n The 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 = ""