Wednesday, May 25, 2016

How Set the SiteUrl Logo using JSOM in SharePoint 2013

var context = new SP.ClientContext.get_current();
var web = context.get_web();

web.set_masterUrl('/sites/intranet2/_catalogs/masterpage/oslo.master');
web.set_siteLogoUrl('/sites/intranet2/Style%20Library/images/Contoso-Blue.png');
web.set_alternateCssUrl('/sites/intranet2/Style%20Library/CSS/Contoso.Intranet3.css');

web.update();
context.executeQueryAsync(onQuerySucceeded, onQueryFailed);

No comments:

Post a Comment