For example, I have a website called www.example.com which is a parent domain. I am using frames inside it. Inside the frame, I am calling www.mail.example.com
I need to check whether mail.example.com(URL inside iframe) is same domain in which google having...
This prevents cross frame scripting. How to achieve it?
Modals I worked out..
if (window.document.domain != top.document.domain) {
SWGuardianWindowOpen("http://google.com","_self","");
}
Another:
if (self != top)
{
//redirect to the google.com
}
if (parent && parent.frames && parent.frames.length>0)
But these are not helpful...