Função resolve() WMLScript

A função resolve() retorna um URL absoluto com base em um URL de base e um URL relativo.

Sintaxe

n = URL.resolve(baseurl, relativeurl)
Componentes Descrição
n String retornada pela função.
baseurl Uma string.
relativeurl Uma string.

Exemplos

var a=URL.resolve("http://codew3c.com", "/wml/n.wml");

Resultados

a = "http://codew3c.com/wml/n.wml"