SP.ClientContext.site Property
Applies to: SharePoint Foundation 2010
Gets the site collection that is associated with the client context.
var value = SP.ClientContext.get_site();
Property Value
Type: SP.Site
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: SharePoint Foundation 2010
Gets the site collection that is associated with the client context.
var value = SP.ClientContext.get_site();
Type: SP.Site