SP.Site.rootWeb Property

Applies to: SharePoint Foundation 2010

Gets a value that returns the top-level site of the site collection.

var value = SP.Site.get_rootWeb();

Property Value

Type: SP.Web

Applies To

SP.Site Class

See Also

Reference

SP.Site Methods

SP.Site Properties

SP Namespace