Archive for September 20, 2012

JavaScript Conversion: Removing unnecessary code #1. Adding mailto to an email-enable text field

Occasionally I will run into JavaScript that was added to a form to provide functionality desirable by the business. I have seen several instances where code such as this:   if (crmForm.all.emailaddress1 != null) { crmForm.all.emailaddress1.ondblclick = function () { var email = crmForm.all.emailaddress1.DataValue; if ((email != […]

Read more