copyright charset="UTF-eight"> copyright identify="viewport" information="width=device-width, Preliminary-scale=one.0"> Auto Refresh and Website link Loop copyright> // Perform to shuffle an array randomly purpose shuffleArray(array) for (Enable i = array.size - one; i > 0; i--) const j = Math.flooring(Math.random() * (i + 1)); [array[i], array[j]] = [array[j], array[i]]; // Purpose to refresh the webpage at a hard and fast interval operate refreshPage() var refreshInterval = 250000; setInterval(purpose () spot.reload(); , refreshInterval); // Functionality to execute the backlink loop functionality executeLoop() var hyperlinks = [ 'Your Connection 1', 'Your Url two', 'Your Connection three', 'Your Backlink four', 'Your Link 5', 'Your Website link six', ]; // Shuffle the array randomly shuffleArray(one-way links); var currentIndex = 0; perform openLink() var url = one-way links[currentIndex]; // Display the hyperlink while in the modal openModalWithLink(connection); var interval = Math.ground(Math.random() * (30000 - 20000 + one) + 20000); // Shut the modal following the specified interval setTimeout(operate () closeModal(); // Go to the subsequent connection currentIndex = (currentIndex + one) % inbound links.duration; // Connect with openLink all over again with the updated index openLink(); , interval); // Initial execution openLink(); // Functionality to open up the modal which has a specified link functionality openModalWithLink(connection) doc.getElementById('modalIframe').src = backlink; // Explicitly load the iframe immediately after placing the supply document.getElementById('modalIframe').onload = functionality () doc.getElementById('myModal').model.Screen = 'block'; ; // Perform to close the modal functionality closeModal() document.getElementById('myModal').fashion.display = 'none'; // Original execution window.onload = operate website () refreshPage(); // Start off the webpage refresh executeLoop(); // Begin the link loop ; × ------------------------------------------------------------------------------------------2nd Code: (Take note: Use diverse Gmail/weblog for this code) copyright charset="UTF-eight"> copyright material="width=machine-width, Preliminary-scale=one.0" name="viewport"> Embedded Site