SP.PageContextInfo.pageListId Property
Applies to: SharePoint Foundation 2010
Gets the ID of the list that is associated with the page context.
var value = SP.PageContextInfo.get_pageListId();
Property Value
Type: String
The ID that identifies the list.