Hi
I have written a javascript function and everything is working fine. i called the function on save. Then I found another way which is as below.
My way is
Function setfocus()
{//my code
}
Function setfocus()
{//my code
}
Another way is as below... why this type of and then all these things are done. created crm object and taken all functions in it. how this is helpful
if (typeof (CRM) == "undefined") {
CRM = {};
}
CRM.WorkOrderFormFunctions= {
setfocus: function (context) {
//code
}}