Name
resolve — Convert a relative URL to an absolute URL
Usage
URL.resolve(base, rel)
: Stringbase
: Stringrel
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"
Get Learning WML, and WMLScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.