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
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