WMLScript resolve() Function
The resolve() function returns an absolute URL based on a base URL and a relative URL.
Syntax
n = URL.resolve(baseurl, relativeurl)
Component | Description |
---|---|
n | The string returned from the function. |
baseurl | A string. |
relativeurl | A string. |
Example
var a=URL.resolve("http://codew3c.com", "/wml/n.wml");
Result
a = "http://codew3c.com/wml/n.wml"