Fonction getHost() WMLScript

La fonction getHost() retourne l'hôte spécifié par le paramètre url.

Syntaxe

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

Exemple

var a = URL.getHost("http://www.codew3c.com/wml");
var b = URL.getHost("/wml/functions");

Résultat

a = "www.codew3c.com"
b = ""