Función getPath() de WMLScript

La función getPath() devuelve la ruta especificada en la URL.

Sintaxis

n = URL.getPath(url)
Componente Descripción
n Cadena devuelta por la función.
url Una cadena.

Ejemplo

var a = URL.getPath("http://codew3c.com/wml/tips.htm");
var b = URL.getPath("http://codew3c.com");

Resultado

a = "/wml/tips.htm"
b = ""