Possible Duplicate:
How to prevent my site page to be loaded via 3rd party site frame of iFrame
How can I prevent others from embedding my web page inside an iframe?
Possible Duplicate:
How to prevent my site page to be loaded via 3rd party site frame of iFrame
How can I prevent others from embedding my web page inside an iframe?
Another solution:
if (window.top !== window.self) window.top.location.replace(window.self.location.href);
With Javascript:
if(window.top==window){
// not in iframe/frame
} else {
if(parent.parent.someFunction){
parent.parent.someFunction();
} else {
alert("parent.parent.someFunction() not defined.")
}
}