NotesURL (NotesDocument - JavaScript)

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

Defined in

NotesDocument

Syntax

getNotesURL() : string

Usage

If Notes® protocols are not available, this property returns an empty string. See HttpURL.

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();
}