2
I needed to create a button inside a iframe
in a corner to close it. I have an image gallery and 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 the iframe
(preference in the upper right corner) when pressing the button would have to close the iframe
. Mind the pages I’ll open by iframe
I don’t have access to the code. And After closing the 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 made:
<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>
@Andersoncarloswoss the page I’m going to show on iframe I don’t have access to it, so I need to create it myself
– Tmc
@Andersoncarloswoss the other question is good-looking but can’t help me
– Tmc
I get it. I thought the pages that were on the question were just examples. I will remove these comments and the vote to close. By the way, why the button needs to be in the iframe and not on your own page?
– Woss
@Andersoncarloswoss is not really going to use these pages, but they are an example.. however the pages I will use do not have access to them the same...
– Tmc