Posted on 2009-12-24
I have an HTML page with an iframe in it that loads a page dynamically, depending on what option is chosen;eg it could be a Repository List, a Matter Management List or a Maintenance Screen. There are icons on that page which user can click to bring up a new type of page in that iframe.
For one particular type, Repository, I want to catch the oneforeunload event if the user navigates to a different dynamic page, from using the Repository, because I need to delete some workfiles. How do I catch the event in the iframe that it has been unloaded (surely it doesn't know)