Hi,

I know this question is asked quite a lot (and I guess I've read all the threads about that), but my situation seems to be different. I'm having a FormPanel loaded into a window with mode=iframe. Inside this FormPanel, there's a button which is supposed to close the current window. The most common solution to this problem seems to be giving the window an id and then calling
parent.IdOfWindow.close()
However, I cannot do so because these windows are created dynamically (there can even be several instances at the same time), so working with a fixed id isn't possible.
The other approach, "climbing" the ownerCt chain up to the window doesn't seem to work. It works up to the panel, but no further.

Is there some way to get to know the id of the current iframe from inside?