Then you mean
- If the document is from a different domain. There is no way to close this iframe form the document inside the iframe? This shouldn’t be a problem of security, no? if possible, how can I do it?
Once again: it is not possible. Full stop.
- From the main window, is possible to read a field of the iframe (in a different domain). Suppose no, right?
That is possible. But only with a help of a server-side proxy application.
If possible, i can use a timer for searching a filed in the iframe and close the window.
No. Reading a file is one thing. Closing a window is another thing.