WMLScript getPath() Fonksiyonu
getPath() fonksiyonu, URL'de belirtilen yolu döndürür.
Sözdizimi
n = URL.getPath(url)
Bileşen | Açıklama |
---|---|
n | Fonksiyondan dönen dizi. |
url | Bir dizi. |
Örnek
var a = URL.getPath("http://codew3c.com/wml/tips.htm"); var b = URL.getPath("http://codew3c.com");
Sonuç
a = "/wml/tips.htm" b = ""