Tuesday, September 23, 2008

How to attach onClose event to MS CRM Entity.


When you work with CRM Forms, if you want to capture / attach a onClose() Event, just use below javascript code.

window.onunload = function() {
//add code here
}

2 comments:

Dmitriy Ilyin said...

hmm... But where i need to place this code?

Ranjitsingh Raghuwanshi - MS CRM Techno-Functional Consultant. said...

You can put the code in onload / onsave event of a form.

Cheers,
Ranjit