SP.ClientContext.applicationName property (sp.js)

Gets or sets the name of the runtime where the current client application is located.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.ClientContext.get_applicationName()
SP.ClientContext.set_applicationName(value)

Return value

String
The name of the runtime where the current client application is located.

Remarks

When setting this property, the value must be between 1 and 128 characters.

See also

Other resources

SP.ClientContext object (sp.js)