ReadonlylistGUID of the currently open list or library as a string.
undefined when the page is not in a list context.
ReadonlylistServer-relative URL of the currently open list or library (e.g. /sites/myweb/Lists/Ciselnik).
undefined when the page is not in a list context.
ReadonlyserverServer-relative URL of the current web (e.g. / or /sites/myweb).
Use this to build server-relative paths to lists and libraries on the current web.
ReadonlysiteAbsolute URL of the current site collection (e.g. https://tenant.sharepoint.com/sites/myweb).
Differs from webUrl when working inside a subsite.
ReadonlywebAbsolute URL of the current web (e.g. https://tenant.sharepoint.com/sites/myweb).
Provides quick access to the most commonly used SharePoint page context values.
Example
Example