Função getPath() WMLScript

A função getPath() retorna o caminho especificado na URL.

Sintaxe

n = URL.getPath(url)
Componente Descrição
n A string retornada pela função.
url Uma string.

Exemplos

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

Resultados

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