Created
December 6, 2011 19:07
-
-
Save mcrowe/1439471 to your computer and use it in GitHub Desktop.
Trapped in an Iframe - A horror story
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%head | |
... | |
%link{rel: 'canonical', href: "http://[MyDomain].com#{request.path}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if parent.frames.length > 0 | |
top.location.replace(document.location) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Who are You --> | |
<frameset rows="100%,*" border="0" framespacing="0"> | |
<frame name="top" src="http://[MyDomain].com" marginwidth="0" | |
marginheight="0" scrolling="auto" frameborder="0"> | |
</frameset> | |
<noframes></noframes> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment