This javascript check whether it was loaded on iframe or not. if iframe was used, redirect the page to where you want.

Code Snippet

<script type='text/javascript'>
if (top != self) 
top.location.href = self.location.href;

author's photo

Author : Blue Cloud

Just a normal software developer who love to write code. Developing professional software since 1999. After working in the software industry for many years, I've started my own website to share knowledges and experiences.

blog comments powered by Disqus