Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: SharePoint Foundation 2010
In this article
Property Value
Applies To
Remarks
Gets the server-relative URL of the root Web site in the site collection.
var value = SP.Site.get_serverRelativeUrl();
Property Value
Type: String
Applies To
Exceptions
- UnauthorizedAccessException
The current user has insufficient permissions to perform the operation.
Remarks
The ServerRelativeUrl property contains a forward slash ("/").