MonsterMMORPG MonsterMMORPG - 1 year ago 120
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 Source
if (self !== top)
    top.location.replace(self.location.href)

that's how you break out of a frame