[Cross-Domain iFrame] || How to close the iframe from within the iframe

[Cross-Domain iFrame] || How to close the iframe from within the iframe

Hello I create a plugin to show another page into my page by the usage of iFrame.

What I do is to create an iFrame, resize it to the "Web Site A" document size and then load into the iframe a page from the "Web Site B" came from another domain. Then I like to add a controll into the "Web Site B" that will allow the user to close the iframe and then to be able to see again the "Web Site A".

How can I do that.

I don't wan't to add this functionality into the plugin, just I like to know how I can close the iFrame from within the "Web Site B"

Kind regards
Merianos Nikos