Verwenden Sie einen Multi -Link in JavaScript für Break IframeJavaScript

Javascript-Forum
Anonymous
 Verwenden Sie einen Multi -Link in JavaScript für Break Iframe

Post by Anonymous »

Ich benutze dieses Skript, um Iframe zu brechen und zu einem anderen Link umzuleiten.

Code: Select all

// Function to break out of iframe
function breakOutIframe() {
try {
// Try to access the parent frame and redirect it to a different URL
window.top.location.href = 'https://myp2p.com/hd';
} catch (e) {
// If an error occurs, log it to the console
console.log('Error breaking out of iframe:', e);
}
}

// Set the interval to 1000 milliseconds (1 second)
var intervalId = null;

// When the iframe is loaded, start the interval
window.onload = function() {
intervalId = setInterval(breakOutIframe, 9000);
};


Gibt es eine Option, die ich als Link -Link -Rotation verwendete. https://myp2p.com/2
Danke

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post