Tuesday, May 7, 2013

Hiding Ribbon and Left hand navigation in CRM 2011

Hiding Ribbon and Left hand navigation in CRM 2011

//Hides Ribbon on Top
window.top.document.getElementById("minimizeribbon").fireEvent("onclick");
window.top.document.getElementById("crmTopBar").style.display = "none";
window.top.document.getElementById("crmContentPanel").style.top = "0px";


//Hides Left hand Navigation
document.getElementById("crmNavBar").parentElement.style.display = "none";
document.getElementById("tdAreas").parentElement.parentElement.parentElement.parentElement.colSpan = 2;

No comments:

Post a Comment