Closing iframe from parent or child. How?

Hello there!

I've been looking around almost everywhere and I found this topic: http://ift.tt/1oJ8nRD

I am basically looking for the same thing but with a little change: I want to add a close button to close an iframe from either parent or child, using javascript, and to make the button disappear after the iframe is closed.

I tried one of the solutions in the thread. This one:
<a href="javascript:...
Code (markup):
Closing iframe from parent or child. How?

from JavaScript http://ift.tt/1RpnoRv
via IFTTT
Thanks for your comment
Loading...