SP.AppInstance.remoteAppUrl property (sp.js)

Gets the base URL of the remote system deployed during the installation of this app instance.

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

var value = SP.AppInstance.get_remoteAppUrl ()

Return value

Undefined

The base URL of the remote system.