Hello!
I have HTML iFrame with code like that:
<script src="https://othersite.com/js/script.js"></script>
<a class="button" href="https://othersite.com/product" target="_blank" data-single-product="true">ButtonName</a>
And I want to make the href link variable by sending a message from page code with help of postMessage.
For example, I have a dataset with a list of various links and I want to substitute them in that HTML iFrame code in href value.
Is this real? Do I correctly understand the purpose of this function?
How to do this?