Fonction getPath() WMLScript

La fonction getPath() retourne le chemin spécifié dans l'URL.

Syntaxe

n = URL.getPath(url)
Composant Description
n Chaîne de caractères retournée par la fonction.
url Une chaîne de caractères.

Exemple

var a = URL.getPath("http://codew3c.com/wml/tips.htm");
var b = URL.getPath("http://codew3c.com");

Résultat

a = "/wml/tips.htm"
b = ""