troubleshooting Question

iFrame onbeforeunload javascript

Avatar of pambrose1
pambrose1 asked on
JavaScript
8 Comments1 Solution1225 ViewsLast Modified:
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)

Peter
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros