getAddress (XSPUrl - JavaScript)

Gets the full address of the URL excluding the query string.

Defined in

XSPUrl (JavaScript)

Syntax

getAddress() : string
Return value Description
string The address.

Usage

This address is in the form scheme://host:port/path and does not include empty components.

Example

This example gets the address of the URL for the current context.
function p(stuff) {
	print("<<<" + stuff + ">>>");
}

var url : XSPUrl;

try {
	url = context.getUrl();
	p("getAddress = " + url.getAddress());

} catch(e) {
	p("Error = " + e);
}

Print output from the example may appear as follows:

<<<getAddress = http://lwpd7.notesdev.ibm.com:10038/wps/PA_cow3tik/page1.xsp>>>