Funkcja getPath() WMLScript

Funkcja getPath() zwraca ścieżkę określoną w URL.

Gramatyka

n = URL.getPath(url)
Składnik Opis
n String zwrócony przez funkcję.
url Jedna strona.

Przykład

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

Wynik

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