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
Gets the server-relative URL for the website.
var value = SP.PageContextInfo.get_webServerRelativeUrl();
Property Value
Type: String
The server-relative URL that begins with "/".