if (window.top === window.self) { window.location.href = "https://google.com"; }