O'Reilly logo

Learning WML, and WMLScript by Martin Frost

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

resolve — Convert a relative URL to an absolute URL

Usage

URL.resolve(base, rel)

base : String

rel : String

Description

Returns the result of resolving relative URL rel against the absolute base URL base. See Appendix A for more on URL resolving.

Returns invalid if either argument can’t be converted to a string or can’t be parsed as a URL or if the resolving fails.

Example

URL.resolve("http://www.inhand.net/wap/main.wml", "uk.wml")

returns string "http://www.inhand.net/wap/uk.wml"

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required