You would like to create a trigger that fires each time a window is closed by the user. You will most likely place the trigger at which of the following levels:
Canvas level
Window level
Data block level
Item level
Form level