Fungsi getPath() WMLScript

Fungsi getPath() mengembalikan jalur yang ditentukan di URL.

Sintaks

n = URL.getPath(url)
Komponen Deskripsi
n String yang dipulangkan dari 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 = ""