I needed to create a button inside a iframe
in a corner to close it. I have a gallery of images and when clicking on an image will open a iframe
, the following code already does this.
But now I needed to create a button in a corner inside iframe
(preference in the upper right corner) when pressed the button would have to close iframe
. Attention to the pages that I'm going to open for iframe
I do not have access to the code. E After closing iframe
through the button it should be possible to reopen it by clicking on the image gallery.
Any idea how I can do it?
I have the following code already done:
<div class="gallery">
<a target="iframe1" href="https://www.google.pt">
<img src="images\pt.png" alt="PT" width="300" height="200">
</a>
<div class="desc">Google PT</div>
</div>
<div class="gallery">
<a target="iframe1" href="https://www.google.co.uk/">
<img src="images\en.png" alt="EN" width="300" height="200">
</a>
<div class="desc">Google EN</div>
</div>
<div id="nav">
<iframe name='iframe1' id='link' width="800" height='500' style="border:none;"></iframe>
</div>