0
Hello,
I have an Iframe as follows:
<iframe width="230" height="280" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://impressoearte.com/produto-em-destaque/" target="_top" ></iframe>
What I want to do:
This iframe calls the product a specific page within a part of the main site, the specific page is this: http://impressoearte.com/produto-em-destaque/
This product contains a link in the image to view more details of this product. I need that when clicking on this product image the main page is loaded to the product page and not only the block where the iframe is. I need a solution that does not need to know the link that will be in the product image, IE, regardless of the product image link the upload is done.
Can someone help me?
If I put a target I will just open the link in a new tab, this is not what I want. I need to have it loaded on the same page where the iframe is, but not only inside the block (div) of the iframe, but on the whole page.
– Wendell
You want to open the link on the same page, that’s it?
– Uilque Messias
that’s right. I need to have it loaded on the same page where the iframe is, but not only inside the block (div) of the iframe, but on the whole page.
– Wendell
Well, in that case you can use the value
_parent
. I edited the answer.– Uilque Messias
I understood, I tried to use the value _Parent inside the iframe code, but it didn’t work. As for editing the page that iframe calls I won’t have access to it.
– Wendell
There seems to be some security setting that does not allow a child page (
iframe
) interfere with the mother’s behaviour– Uilque Messias
And there’s a way around it?
– Wendell
as I had said from the beginning, I will not have access to edit the child page (iframe src). So there is no way I can enter your javascript. The product comes from Woocommerce.
– Wendell
I got a solution, I’m editing the answer.
– Uilque Messias
Thank you for your help, unfortunately I still cannot vote on your reply.
– Wendell