368 posts plop
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been part of the Envato Community for over 5 years
  • Made it to the Authors' Hall of Fame
+8 more
kimonothemes says

Put this into a blank html page :
<script type="text/javascript">
    top.location.href = "http://example.com/livepreview";
And insert it in your live demo field on TF. It will redirect to the demo without iframe.
Aaaah thanks!!!! this works :D

You’re welcome! :P

300 posts
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
campuscodi says

Search google for “Framebuster scripts” and you’ll find numerous solutions.

There are WP plugins for that too. I remember testing two of them a while back.

The company I work for uses a similar Prototype script to do this as well.

2043 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 more
revaxarts says
Thats simple:
var isIframe = (top.location != self.location);
    top.location.href = location.href;

already did it on my livepreviews