CRM 2011: how to know when the form is coming back from Save

To put it another way: how can you make the difference between a load when the form is first opened, and a reload after a save for example?

A simple way to achieve this is to use the status or defaultStatus properties of the window object. Both Status and defaultStatus can be used to set the text displayed in the status bar at the bottom of the browser. When setting one of these properties before a save is performed, you can access them upon reload and they will have kept the new value. Example:

window.status = “reload”;

That’s the easiest way I’ve found to achieve this!