Fungsi getPath() WMLScript
Fungsi getPath() mengembalikan laluan yang ditentukan dalam URL.
Syntax
n = URL.getPath(url)
Komponen | Description |
---|---|
n | String yang dihasilkan daripada fungsi. |
url | Sebuah string. |
Contoh
var a = URL.getPath("http://codew3c.com/wml/tips.htm"); var b = URL.getPath("http://codew3c.com");
Hasil
a = "/wml/tips.htm" b = ""