After opening an iframe, I sometimes need to close it. So far, I have simply removed the iframe from the parent node, thereby clipping it from the DOM. However, I found that this did not immediately end the life of the iframe, and its javascript code could still return to the parent window, which no longer expects these callbacks.
How can I kill an iframe? I do not see a method of closure or destruction.
source share