ฟังก์ชัน getFragment() ของ WMLScript

ฟังก์ชัน getFragment() ของ WMLScript คืนค่าชิ้นส่วนของ URL หลังจาก #

รูปแบบ

n = URL.getFragment(url)
ส่วนประกอบ คำอธิบาย
n ตัวแปรตัวคำที่ส่งมาโดยฟังก์ชัน
url ตัวแปรตัวคำ

ตัวอย่าง

var a = URL.getFragment("http://codew3c.com/wml#read");
var b = URL.getFragment("http://codew3c.com/wml");

ผลลัพธ์

a = "read"
b = ""