Anchor type link within an iFrame

0

Speak up, all right?

Develop for a virtual store! And in the product page the descriptions are being created by iframe ! (yes, unfortunately I can not change that)

In other words, we have a domínio just to create the ads (Ads would be html any pages) and to upload them via iframe in the domain that is hosting the store!

Well aware of this scenario, we have a link inside that iframe with ancoras into itself, but it does not work! Out of iframe (Within the domain where ads are generated, it works fine) I have already researched in a number of ways, I have already done for example:

<li><a href="#ancora">Link 1</a></li>

And within the content that is generated by the iframe has

<a name="ancora"></a>

I tested with target too and it did not work I already tried with Jquery and it also did not work

Can someone give me a light?

    
asked by anonymous 04.10.2017 / 16:32

1 answer

0

When you use #(hash) in href it refers to a id , this post:

change:

<a name="ancora"></a>

for

<a id="ancora"></a>
    
04.10.2017 / 17:22