I'm using that code to kill frames using my page:
if(self == top) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
};
But I want add some exception for one domain and add another condition:
if(self == top) {
document.documentElement.style.display = 'block';
} else {
if (window.location.host != "www.linuxportal.pl") {
top.location = self.location;
};
};
But it won't work. Script kills every frame, even from www.linuxportal.pl. How to make script to kill every frame but leave frame in www.linuxportal.pl only?