Hi, I ve created an html page (hype document) which contains an iframe, where I m loading my content, (several hype documents) using the “innerhtml” attribute. I would like to add some bg looping music to my parent html, but it has to be triggered by an iframe action. I tried to use the
to control the audio element located to parent, assuming the audio id element of my music is “audio” with no results.
I cant figure out what I m doing wrong, please help.
Solution: the window.parent.document.getElementById(‘audio’).play(); is correct but you can’t see the result locally, only on a server