title: Detecting when an iframe is closing
body: <p>We are using Salesforce and have embedded iframes that show content from another application we have developed.  When the user is working on fields in our iframe and lose focus on them, the iframe script saves their input back to our system.  However, there can be instances where the user enters data in one of our fields, but never loses focus and then directs the outer salesforce shell to navigate to a different page.  This causes our field to never save because it never lost focus.</p>
  
  <p>So for an iframe, is there some sort of unload event that we can attach to and detect if we need to save before the page refreshes with another salesforce view?</p>