When I set the iframe source using javascript it doesn't work. The first alert message shows up as the data-src of the iframe, but the second shows up empty.
for (var i = 0; i < images.length; i++) {
var slide = images.item(i);
slide.style.src = slide.dataset.src;
alert(slide.dataset.src);
alert(slide.style.src);
}
<iframe class="load color light" data-type="src" width="865" height="572" data-src="https://www.youtube.com/embed/ONA67lhVpLs?rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
stylechanges thestylesheetof the element. Useslide.srcinstead