373 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";
</script>
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.

2187 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Participated in a focus group or interview to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+10 more
revaxarts says
Thats simple:
var isIframe = (top.location != self.location);
if(isIframe){
    top.location.href = location.href;
}

already did it on my livepreviews

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by