SP.PageContextInfo.pageItemId Property
Applies to: SharePoint Foundation 2010
Gets the ID of the item that is associated with the page context.
var value = SP.PageContextInfo.get_pageItemId();
Property Value
Type: Int32
The ID of the item.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: SharePoint Foundation 2010
Gets the ID of the item that is associated with the page context.
var value = SP.PageContextInfo.get_pageItemId();
Type: Int32
The ID of the item.