Change the Fore color of Label:
// it will change the Account Number Label to green bold
crmForm.all.accountnumber_c.innerHTML = "<font color='green'><b>" + crmForm.all.accountnumber_c.innerText + "</b></font>";
Change the background color of the form
document.all.tab0.style.backgroundColor = 'white';//General tab
document.all.tab1.style.backgroundColor = 'white';//Details tab
document.all.tab2.style.backgroundColor = 'white';//Administration tab
document.all.tab3.style.backgroundColor = 'white'; //Notes tab
Disable a form
document.body.disabled = true;
Hide an entire row
var accountname = crmForm.all.name;
while ((accountname.parentNode != null) && (accountname.tagName.toLowerCase() != "tr"))
{
accountname = accountname.parentNode;
}
if (accountname.tagName.toLowerCase () == "tr")
{
accountname.style.display = "none";
}
Retrieving the text of a lookup control
var list = crmForm.all.<lookupfield>.DataValue;
if (list [0] != null)
{
var theSelectedText = list [0].name;
}