Yisrael tried to help me about this, maybe someone else would succeed.
Since I can not add an Iframe to a dynamic page and load it into an HTML component, I am trying to modify the Iframe (each Iframe loads an online game).
I have a list of Iframes, they are all written the same way except for the names. for example:
<div class="miniclip-game-embed" data-game-name="zombie-choppa" data-theme="5" data-width="500" data-height="500" data-language="en"> <script src="//static.miniclipcdn.com/js/game-embed.js"></script>
In this case, it is "zombie-choppa".
I was thinking to add a code to the HTML component that will take the page title or text element, which is also equal to "zombie-choppa" and will put it into the Iframe (so each page has its own name).
<div class="miniclip-game-embed" data-game-name="'+document.title+'" ......
I tried this manually in HTML component, but it is not working.