} // Function to open the modal with a given link function openModalWithLink(link) { document.getElementById('modalIframe').src = link; // Explicitly load the iframe after setting the source document.getElementById('modalIframe').onload = function () { document.getElementById('myModal').style.display = 'block'; }; } // Function to close the modal function closeModal() { document.getElementById('myModal').style.display = 'none'; } // Initial execution window.onload = function () { refreshPage(); // Start the page refresh executeLoop(); // Start the link loop };

Comments

Popular posts from this blog