Make the Link in iframe scroll in parent window when clicked (like an anchor)

Hi, I got a third-party app embedded in an iframe on my page.
The app has 3 buttons inside, all of them links to the same section on the same page of the iframe (I took the #compID and made a URL link for it)

However, when the links are clicked, it refreshes the page and load it on the linked section.

I would like the buttons to act as an anchor link - as if this was a native wix button linked to an anchor on the page:
So on click, it should scroll the page to the section position instead of refreshing it.

Is this possible? if so, how?
I would appreciate your help.
Thanks!

Of course this should be possible.

All you have to do is to bring back your results to the page.
Place this on your page…
https://www.wix.com/velo/reference/$w/htmlcomponent/postmessage

Send data from HTML-WINDOW back to your page.
https://www.wix.com/velo/reference/$w/htmlcomponent/onmessage

Once you got your results back on page —> do what ever you want with the RESULT-DATA.

Unfortunately that’s basically Chinese to me :frowning:
there are several codes in these links… some for the html some for the velo code perhaps you can paste what’s relevant here so I could just copy and paste?
thank you :pray:

If so → you should start to learn CHINESE, because you will need it if you want to generate a GREAT & GOOD-WORKING SITE.

Please use the SEARCH of the VELO-FORUM.

In the past of about 3-years i posted enough examples → dealing with HTML-COMPONENTS.

You will surely find enough informations and examples, which will show you how HTML-COMPONENTS works and how to work with them.

You must understand, that i can not CODE for everybody.

  1. https://community.wix.com/velo/forum/coding-with-velo/how-passing-dataset-fields-value-from-lightbox-to-iframe-javascript-variable

  2. https://community.wix.com/velo/forum/coding-with-velo/reload-an-html-iframe

  3. https://community.wix.com/velo/forum/coding-with-velo/embed-code-from-dataset-to-html-element

  4. https://community.wix.com/velo/forum/site-page-design/linking-html-iframes-to-a-lightbox

  5. https://community.wix.com/velo/forum/coding-with-velo/how-to-integrate-codepen-code/dl-9e01dd0c-28c0-46e5-ad1c-90449e34b8df

6)…

…and there is even much more stuff to read and to learn about HTML-COMPONENTS.

Yes I understand. Thank you!