HttpURL (NotesDocument - JavaScript)

Read-only. The Domino® URL of a document when HTTP protocols are in effect.

Defined in

NotesDocument

Syntax

getHttpURL() : string

Usage

If HTTP protocols are not available, this property returns an empty string. See NotesURL.

See resolve in NotesSession for additional information and examples.

Examples

This computed field displays the HTTP URL for server-based applications and the Notes® URL for client-based applications.
if (session.isOnServer()) {
	return document2.getDocument().getHttpURL();
} else {
	return document2.getDocument().getNoteID();
}