MonsterMMORPG MonsterMMORPG - 7 months ago 61
Javascript Question

How to break iframe and redirect page with Jquery

How can i understand that my page is being called from iframe and break it with jquery ? Thank you.

Answer
if (self !== top)
    top.location.replace(self.location.href)

that's how you break out of a frame

Comments