WMLScript getPath() funktionen
getPath() funktionen returnerer den angivne sti i URL'en.
Syntaks
n = URL.getPath(url)
Komponent | Beskrivelse |
---|---|
n | Streng, der returneres af funktionen. |
url | En streng. |
Eksempel
var a = URL.getPath("http://codew3c.com/wml/tips.htm"); var b = URL.getPath("http://codew3c.com");
Resultat
a = "/wml/tips.htm" b = ""