Window closing dilemma
06:33 31 Aug 2026

I currently have a window with an iFrame that displays an html page (created as a report). If the user simply clicks the special Close button I have, it exits the window and erases the html file. However, if they click on the window's X button, the html file can't be deleted which causes a problem later.

I tried tieing an event handler to both the clicking of the X button and also one on what I thought was the window closing but they never fire.

Is there a way to either create a window with no buttons, or create an event handler to trap on the closing of the window?

html