Funzione getPath() di WMLScript
La funzione getPath() restituisce il percorso specificato nell'URL.
Sintassi
n = URL.getPath(url)
Componente | Descrizione |
---|---|
n | Stringa restituita dalla funzione. |
url | Una stringa. |
Esempio
var a = URL.getPath("http://codew3c.com/wml/tips.htm"); var b = URL.getPath("http://codew3c.com");
Risultato
a = "/wml/tips.htm" b = ""