Funzione getFragment() di WMLScript

La funzione getFragment() restituisce il frammento dei parametri URL.

Sintassi

n = URL.getFragment(url)
Componente Descrizione
n Stringa restituita dalla funzione.
url Una stringa.

Esempio

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

Risultato

a = "read"
b = ""