Hi! Do anyone know how to stop my site to be displayed in an iframe of another site?
I found the javascript solution. Is there any better solution??
I found the javascript solution. Is there any better solution??
function parentIsSameOrigin()
{
var result = true;
if (window.parent)
{
result = Boolean
(
// more precise modifications needed here
window.this.location.href.indexOf(window.parent.location.href) == 0
);
}
return result;
}
Comment