var sceneElm = document.getElementById(hypeDocument.currentSceneId());
var iFrameElm = sceneElm.querySelector('.myFrame');
iFrameElm.setAttribute('src', element.dataset.frameSrc);
given you have an iFrame with the classnamemyFrame
But there is another file that should also help understand how it works but it's a bit older: