Is there any way to change the SharePoint 2013 logo dynamically, ideally via javascript?
I have tried:
document.getElementById("onetidHeadbnnr0").src="\path\image.png";
Also tried:
div = document.getElementById('onetidHeadbnnr2');
div.setAttribute("LogoImageUrl", "\path\image.png;");
Both above are not working. I tried using an alert box to debug. There is some issue at the div.setAttribute for this control.
img
tag, as opposed to a specific ID. – webdes03 Jun 29 '14 at 13:08