SP.AppInstance.appWebFullUrl property (sp.js)
Gets the absolute URL of the site created during the installation of the app instance that is used to host SharePoint components.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.AppInstance.get_appWebFullUrl ()
Return value
Undefined
The absolute URL of the site.