SP.WebInformation.id property (sp.js)

A unique identifier of the SharePoint Web site.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.WebInformation.get_id ()
var value = SP.WebInformation.set_id ()

Return value

Undefined