IsOnServer (NotesSession - JavaScript)

Read-only. Indicates whether the session is running on a server.

Defined in

NotesSession

Syntax

isOnServer() : boolean
Legal value Description
true if the program is running on a server
false if the program is running on a client

Examples

This computed field returns a different message depending on the environment.
var title = database.getTitle();
if (session.isOnServer()) {
	return title + " running on " + session.getServerName();
} else {
	return title + " running locally";
}