I am loading a Microsoft CRM 4.0 window from an Intranet page using window.open(...).
When the window closes, I need it to programmatically press a button on the page that opened it. I can do this from my own form by getting the button (whose name is passed in the querystring) and executing its click method in JavaScript.
I thought I could try opening my own window with an iframe containing the CRM page as I do with other web-based systems on our Intranet. In the page I can then click the button in the onunload event of the page. However, although this works for most of our systems, with CRM I get two problems.
- If I open a window then simply close it I get a CRM error.
- If I press the Save and Close button from the CRM window it saves but does not close.
Is there a solution for this?