WMLScript getPath() Functie
De getPath() functie van URL retourneert het opgegeven pad in de URL.
Syntaxis
n = URL.getPath(url)
Bestanddeel | Beschrijving |
---|---|
n | De string die door de functie wordt geretourneerd. |
url | Een string. |
Voorbeeld
var a = URL.getPath("http://codew3c.com/wml/tips.htm"); var b = URL.getPath("http://codew3c.com");
Resultaat
a = "/wml/tips.htm" b = ""