Hide iframes when the banner is shown¶
Requirements
In both examples it is necessary to add a <div>
in the place where you want to add the iframe
<div id="log"></div>
<script>
window.addEventListener("CMP_SHOWN", function (e) {
document.getElementById('log').innerHTML = '';
}
});
window.addEventListener("SAVE", function (e) {
document.getElementById('log').innerHTML = '<iframe id="IFRAME_ID" src="IFRAME_SRC"></iframe>';
}
});
</script>