function iframeLoad(id) { const iframeContainer = document.getElementById(id); const iframes = iframeContainer.querySelectorAll(":scope > iframe"); // this a NodeList const warning = iframeContainer.querySelector(".iframe-manual-warning"); warning.remove(); iframes.forEach((frame, _) => { frame.setAttribute("src", frame.getAttribute("data-src")); }); }